Questions tagged [selenium2library]

Selenium2Library is a web testing library for Robot Framework.

Selenium2Library is a web testing library for Robot Framework.

It uses the Selenium 2 (WebDriver) libraries internally to control a web browser. See http://seleniumhq.org/docs/03_webdriver.html for more information on Selenium 2 and WebDriver.

Selenium2Library runs tests in a real browser instance. It should work in most modern browsers and can be used with both Python and Jython interpreters.

234 questions
3
votes
3 answers

Manual input (Captcha) with Robot Framework?

I'm writing an acceptance test for web using Robot Framework + Selenium2Library. The point is that web contain some input field that I can not automate (CAPTCHA), and I can't tell my vendor to turn off this feature while running test. So I have to…
neizod
  • 1,582
  • 15
  • 24
2
votes
1 answer

Why Robot Framework, Selenium2Library, Element Text Should Be keyword does not verify input element text properly?

I face an issue with testing a simple survey html page created for self learning purpose based on https://www.freecodecamp.org/learn/responsive-web-design/responsive-web-design-projects/build-a-survey-form. When I try to check if the input field is…
agam
  • 33
  • 6
2
votes
2 answers

Couldn't able to use Xpath in Appium + Robot Framework where in Appium Log its displaying error message as contextId: ' multiple: true'

Using Robot Framework with combination of Appium and Selenium2Library/SeleniumLibrary. If I tried to run my script with some xpath locators like as below AppiumLibrary.Click Element xpath=//android.widget.TextView[@text='Site…
Raman
  • 444
  • 6
  • 21
2
votes
1 answer

Robot Framework testing that defined headers in data-table are correct

Im having problem while testing that correct values are present inside data-table element. Im using Selenium2Library and Robot Framework 3.0 version. Im using this code to check the values inside element : FOR ${item} IN @{elements} …
2
votes
1 answer

Robot framework - How to specify default download location for Chrome?

I am trying to set default download location in Chrome. Below mentioned is the code: *** Variables *** ${DOWNLOAD_DIRECTORY} C:\\robot_framework\\Results *** Keywords *** Begin Web Test @{list} = create list disable-web-security …
Sachetan
  • 89
  • 4
  • 13
2
votes
5 answers

Element with locator 'xpath=//*[@id="1"]/button' not found

I am writting robot framework tests with Selenium2 Library and i can't access button, there are many same buttons on one page, so it doesn't have id. Those ways i tried to access element: Click Element xpath=//*[@id="1"]/button Click Button …
Seiggailion
  • 162
  • 2
  • 2
  • 12
2
votes
2 answers

Robot framework promise handling

Is there a way in Robot Framework to run a javascript method that returns a promise and resolve that promise so I could get a result from it? I tried to achieve it in two ways. The first way was to run the Execute Javascript keyword and pass the…
Mateusz Cisek
  • 775
  • 11
  • 22
2
votes
2 answers

"Element Should be Disabled" not working?

I am using Robot Framework and Selenium2Library. I am trying to check that given element is disabled. Code used is : Element Should Be Disabled | //div[6]/div[2]/div/div[2]/div[1]/div[2]/div/div/div[2]/div[2]/span[4] This code is giving me…
2
votes
1 answer

Centralizing XPath in resource file, how to pass arguement from robot file?

I am centralizing all particular XPath strings to a resource file and importing the variables in that resource file in my test suite (robot framework). This way, they can be maintained in one place and I can use variable names that make the robot…
dirtyw0lf
  • 1,899
  • 5
  • 35
  • 63
2
votes
3 answers

scroll until the element is in view using Selenium2Library Keyword

I am using Robot Framework for my web application automation execution.I had found one such solution using Selenium Web-driver. scroll until the element is in view using Selenium Webdriver But I wanted to accomplish this using…
Humble_PrOgRaMeR
  • 689
  • 4
  • 14
  • 34
2
votes
1 answer

How to add and get cookie value in Chrome with Selenium and Robot Framework

I've been learning Robot Framework with Selenium2Library lately, and I've one little problem. I try to Add cookie to website opened in Chrome, and then retrieve its value to make sure it's equal to expected value. resources.txt: *** Settings…
user5666844
2
votes
5 answers

Upload a file in browser using Robot Framework Test

I'm writing Test Cases using Robot Framework and Selenium for my Web application. I tried to Upload a file, but I can't its failing. My Code is *** Variables *** ${TVAURL} http://localhost:1500/ ${Browser} Firefox TC_01: Enter into the…
user7784919
2
votes
1 answer

How to check radio button status on UI (whether it is enabled or disabled)- robot framework

How to check whether a radio button status (is enabled or disabled). Is there any selenium2 keyword for this? Please help.
sanjay pujari
  • 459
  • 2
  • 7
  • 23
2
votes
0 answers

Selenium2Library - Safari not selecting from drop down list

I have two drop downs on a page. I need to verify that the item in drop down list 1 has a class of "selected" added to it when the item in drop down list 2 has been selected. Drop down list 1 has more than 3 options in it but I wanted to save space…
Chris
  • 41
  • 3
2
votes
1 answer

Run robot keyword depending on existence of the element

Is there a way to get info on whether an element exists on a page or not in Robot framework? I would like to take one action if element exists on page, or another if element doesn't exist. In Selenium, I would use findElements(), and that would…
zorglub76
  • 4,852
  • 7
  • 37
  • 46
1 2
3
15 16