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
16
votes
6 answers

How to run headless REMOTE chrome using robot framework

I'm trying to run chrome headless with my robot framework tests suites. I managed to do it independtly with python using selenium as follows: options = webdriver.ChromeOptions() options.add_argument('--headless') my_driver =…
Dan W
  • 163
  • 1
  • 1
  • 4
10
votes
1 answer

Create an Empty List and push data in an Iteration using Robot Framework

I need to make a collection which is populated in a loop. So, I need a global collection and I need to use that collection variable in For Loop using Robot Framework. Kindly look at the code *** Settings *** Library Selenium2Library Library …
user7784919
6
votes
2 answers

Robot Framework: Wait Until Element Is Visible vs. Element Should Be Visible, which one is better to use?

I know that both of them can be used to validate if an element appears on the page but I was wondering about the performance impact and readability implications of each. So my question is, suppose you have 20 elements to check in the page, Is it…
6
votes
4 answers

How do I use Click Element function with robot framework when the element does not have id or name?

I'm currently using the Selenium2Library in robot framework to automate some web tests. Currently, I'm having problems automating the click of a login button with the Click Element function. This is the element I would like to use:
Zubair
  • 715
  • 1
  • 9
  • 15
6
votes
2 answers

Unhandled error "Cannot find context with specified id" using Robot framework

I have a problem when working with iframe using Robot framework and Selenium2Library. It throws error: WebDriverException: Message: unknown error: unhandled inspector error: {"code":- 32000,"message":"Cannot find context with specified id"} (Session…
5
votes
0 answers

Not getting focus back to browser after AutoIT Widows authentication in Robotframework

A condition that I am trying to automate in Robotframework: Go to URL(Library Selenium2Library) Login with windows authentication (Library AutoItLibrary) focus back to the browser TestCase in RobotFramework: Open browser: *** Settings…
JINOPPIE
  • 51
  • 2
5
votes
1 answer

Robot selenium2library how to set wait for elements globally

I would like to ask whether there is an option in robot (using selenium2library) to set some implicit wait for ALL elements which should be located during the test on just one place? Currently I place the wait before EACH element in my keywords…
5
votes
1 answer

How can I get my gradle test task to use python pip install for library that isn't on maven central?

I am trying to set up a gradle task that will run Robot tests. Robot uses a python library to interact with Selenium in order to test a web page through a browser. But unfortunately it seems the only way to install the…
SnoopDougg
  • 1,467
  • 2
  • 19
  • 35
4
votes
4 answers

How to use Webdriver manager in Robot Framework?

In selenium I used webdriver manager through a command: driver = webdriver.Chrome(Chromedrivermanager().install()) Is there a webdriver manager use for the robot framework? I would like the webdriver manager to download automatically when running…
4
votes
3 answers

RobotFramework: Drag And Drop Selenium2 Keyword seems not to work

I'm testing web app (using RobotFramework with Selenium2Library) in which some drag and drop actions is needed at couple of points. I tried Drag And Drop keyword, but it's not working properly. Since I can't pass the production app, I recreated…
YggY
  • 57
  • 1
  • 2
  • 8
4
votes
9 answers

'chromedriver' executable needs to be in PATH. Robot framework pycharm

I am new to Robot framework and I have followed all set up related steps from this link, however, I am getting some error which I am not able to identify. Anybody, please help. *** Settings *** Documentation Simple example using…
Sanat
  • 267
  • 1
  • 5
  • 16
4
votes
5 answers

Element is not clickable at point - but it clicks in fact

My test is failing with: WebDriverException: Message: unknown error: Element is not clickable at point (1 786, 183). Other element would receive the click: <'div align="right">...<'/div> xpath I access is: ${UPDATE} …
4
votes
4 answers

How to use variable, which value should be set in keyword or test, in XPATH?

I need to click on element based on what value it contains..but I want to set this value in test run or keyword definition (best option is in the test I guess) How should I do it? the variable containing xpath should look like that: ${DROPDOWN…
neliCZka
  • 945
  • 1
  • 16
  • 27
4
votes
2 answers

Robot Framework - Selenium2library - Check the Favicon of the page

I need to see if the current page is displaying the correct title icon. We change the icon depending on where you are on the site, and need to make a check against it. I have tried Page Should Contain Image /bin/icons/1.ico The HTML we use…
4
votes
2 answers

Robot Framework - Selenium2Library - Input text into field according to the text before it

Due to every ID being randomly generated after each refresh, I am having to use other identifiers. I basically want Robot to input text into a field next to my indicated identifier. https://vgy.me/3YBIgl.png I want text to be inputted to the user:…
Goralight
  • 2,067
  • 6
  • 25
  • 40
1
2 3
15 16