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
4
votes
1 answer

How to reduce waiting time in Selenium2Library Robot Framework

I have a test script in Robot Framework which I want to reduce its elapsed time. I have below command as a part of the test procedure: wait until element is enabled id=${elementId} In run time, it takes about 5 seconds to be done; I've set…
Zeinab Abbasimazar
  • 9,835
  • 23
  • 82
  • 131
4
votes
4 answers

Robot Framework Text Field Clearing and Inputting

I am automating a web page using Robot Framework. The page has unusual text fields that receive automatic input (not placeholder values) in case Enter is hit for invalid values. Here is the text field:
4
votes
3 answers

How to Upload file from windows directory using selenium2library and Robot Framework

Can someone help me How to Upload file from windows directory using selenium2library and Robot Framework.I have tried using Choose File command in selenium2library but I am getting error as File doesn't exist in local file system.I am not sure…
Auto-learner
  • 1,411
  • 7
  • 26
  • 43
4
votes
1 answer

wait until the page is loaded

In Robot Framework, does any keyword in any library implement this? Open Browser and Go To just go to the requested URL but don't wait until the page document is fully loaded.
Cauchy Schwarz
  • 747
  • 3
  • 10
  • 27
3
votes
1 answer

Get HTML tag of a given element in Robotframework

Let's say I have following HTML in my source code: ... some text ... Let's also say that I have located this element via: ... ${web_element} Get Webelement id:myElement ... Now I want to get the html tag of this…
Faram
  • 525
  • 6
  • 21
3
votes
3 answers

Wait until Page Contains Element works but not Element Should Contain

Trying to verify if an element contains a specific text, but the keyword Element Should Contain does not find the text even if I explicitly put in the xpath attribute that it contains the text. However the keyword Wait Until Page Contains Element…
E.AS.P.
  • 33
  • 1
  • 1
  • 4
3
votes
3 answers

What is the equivalent ExpectedCondition of "Wait Until Page Contains" of robot framework in Java

I know there are types of wait in java Implicit wait- driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS) Explicit wait- WebDriverWait wait = new WebDriverWait(driver, explicitWaitSec); …
Dev
  • 2,739
  • 2
  • 21
  • 34
3
votes
3 answers

Robot Framework: Suite Teardown fails when using Close All Browsers

I'm using chromedriver, robotframework with SeleniumLibrary and all the tests works fine, but the suite teardown fails. I cant seem to find out why. Help would be greatly appreciated. Log shows: Parent suite teardown failed: BadStatusLine:…
3
votes
2 answers

How to get the element count matching text in nth column of Span Table

Col1 Col2 Col3 Col4 Col5 2 XYZ Andy Div2 Address2 3 NNN Spencer Div1 Address3 4 YYY Krish Div8 Address4 5 ABC Sima Div1 Address5 I have a span table like the one in the…
Sarah
  • 87
  • 1
  • 11
3
votes
4 answers

Robot Framework - Docker - Chromedriver

I'm trying to setup a container to test with RobotFramework on chrome. But when I run my container I keep getting a WebDriverException. I've searched but couldn't find any fix that actually works for me. This is my Dockerfile FROM python:3 RUN…
3
votes
1 answer

Proxy : Robot Framework and Firefox

I am trying to use a proxy of LocalHost and port 8080. I have written the following code in Robot Framework but the IP is not changing once the browser opens: *** Settings *** Documentation This is a simple test with Robot…
3
votes
1 answer

Unable to click on checkboxes using Robot Framework and selenium2library

I used 3 different waits purposely to locate the element (a checkbox) on the page as shown below and they get passed. After that I click on that same element which also gets passed. Now my question is if the click element method gets passed then…
3
votes
0 answers

What are desired capabilities that we need to consider when invoking a firefox browser remotly via selenium

I need to run the Firefox browser in a remote machine, using a Robot test case. My environment : RHEL 6.9 Santiago, python:2.6.6, Rebot 2.9.1, selenium2library firewall rule created to access the remote machine (x.x.x.x:4444/) so accessing remote…
Rifazy
  • 31
  • 5
3
votes
0 answers

Creating selenium webdriver in python and using it in robotframework

So i am practically stacked. If you call the selenium2library keyword Open Browser a webdriver object instance will be created and placed in the browsercache(if i understand the functionality correctly). To this point i know how to acquire the…
3
votes
1 answer

robot framework - any alternative to Selenium2Library's "Input Text" for entering text into text fields?

I'm having an issue with the Selenium2Library "Input Text" keyword due to a couple of new text fields that have an auto-formatting script that appear to be causing issues when entering text with the keyword (there are spaces added into the text…
1
2
3
15 16