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
2
votes
5 answers

Automation in Robot framework

I have written a simple test case to open Firefox browser and go to "https://www.google.co.in". I am getting this error. Test script *** Settings *** Library Selenium2Library *** Test Cases *** case1 Open Browser …
Ishan mahajan
  • 336
  • 1
  • 5
  • 15
2
votes
0 answers

RobotFramework/Java - 1st arg can't be coerced to org.openqa.selenium.WebElement

I'm trying to work with simple Java function as below and calling this library into Robotframework. It throws me below error. Related issues in the blogs are not specific to RF. Someone please help me how to handle this. import…
Roja
  • 293
  • 1
  • 5
  • 21
2
votes
1 answer

RobotFramework - ClassNotFound Exception when selenium org.openqa.selenium is added to my JavaLibrary

Please help me on this situation. I followed the below steps in Java and Added this jar file into Robot framework project. When executing the test, I received ClassNotFoundException. Java Corrected Code: import java.util.ArrayList; import…
Roja
  • 293
  • 1
  • 5
  • 21
2
votes
0 answers

Can I install robotframework 3.0.2rc1 version with python 2.7.13

I want to use RIDE to create automation test cases for browser based applications. I looked all over internet for installation instructions and found many. But none of them clearly call out which combination of robotframework and Python version…
2
votes
1 answer

How to disable chrome pop up that says You are using an unsupported command-line flag: --ignore-certifcate-errors. Stability and security will suffer'

When opened chrome it is opening with pop up message 'You are using an unsupported command-line flag: --ignore-certifcate-errors. Stability and security will suffer'. I am using latest chromedriver.exe to launch this. And in robot framework using…
sanjay pujari
  • 459
  • 2
  • 7
  • 23
2
votes
1 answer

How to set dynamic value to a variable and use it for other test in robot framework?

Suppose I have a generated random alphanumeric character in Test 1(or by using user defined keyword). Now I want to set that random generated value to a variable ${RandomName} (see attached image) and use that variable for other test methods (say…
Shoaib Akhtar
  • 1,393
  • 5
  • 17
  • 46
2
votes
1 answer

Robot Framework - Selenium2Library - Choose File keyword with Edge Browser

I have created a test where a user will upload a file to the website by clicking on the "Choose File" button. I am using the Choose File keyword and it works correctly within Firefox and Chrome. When it comes to Edge, it just sits there and doesn't…
2
votes
2 answers

ASCII code for key "arrow down" to use in robot with selenium2library

please, what is the ASCII code for key "arrow down" and "arrow up" that can be used with keyword "PRESS KEY" in robot framework using selenium2library? I searched many threads, tried many combinations (25, 40, and a lot more) but nothing really…
neliCZka
  • 945
  • 1
  • 16
  • 27
2
votes
3 answers

How to get all elements' text attribute at once in Robot Framework?

I have some web elements which has the same prefix for their ID attribute. I can get these elements all at once with get webelements; I want to extract their text attribute with one command. I have wrote this line: ${elList} = get webelements …
Zeinab Abbasimazar
  • 9,835
  • 23
  • 82
  • 131
2
votes
3 answers

Robot Framework - pass chromeoption as desiredcapability

I was able to make the following work in Java: DesiredCapabilities capabilities = DesiredCapabilities.chrome(); ChromeOptions options = new…
tic
  • 83
  • 1
  • 9
2
votes
2 answers

How to get the number of row where I could find a specific value in RobotFramework?

I already written something like that: Check privileges for PDTA ${end}= Get Matching Xpath Count //*[@id="listForm:displayDataTable:tbody"]/tr ${start}= Set Variable 0 : FOR ${index} IN RANGE ${start} ${end} …
pingwin850
  • 299
  • 1
  • 7
  • 24
2
votes
2 answers

How to select a drop down menu value using robot framework?

How to select a order number from the drop down list. Page has a similar 2 more drop down with same ng-repeat. when i try to select some text, it selects matching text from other drop down. text equals also failed. HTML:-