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

Click update after dialog appears Robotframework

I'm testing a scenario where I click on a button and below dialog appears. It's only possible to click on 'Update' I have put following in my test scenario: Click Element jquery=a.newOrder Click Element Link=Update I receive following…
Eclectica
  • 41
  • 1
  • 1
  • 4
0
votes
1 answer

Selenium2library Add cookie

I'm trying to login to a webpage using the robotframework I have following testcase: *** Settings *** Library Selenium2Library *** Testcases *** Login Should Succeed When the Correct Username and Password are Entered Open Browser …
Eclectica
  • 41
  • 1
  • 1
  • 4
0
votes
0 answers

How do I assert that a page contains text with mixed formatting using Robot Framework's Selenium2Library?

This doesn't work: HTML Source:

foo bar

Robot Test Case: Page Should Contain foo bar How can I write a test that searches for text without having to care about text formatting tags (em, strong, span, et al.)? Do I have…
Christopher Parker
  • 4,541
  • 2
  • 28
  • 33
0
votes
2 answers

Need help regarding Run Keyword if xpath matches and then click element

I am trying to validate xpath expression and if it is true click element .Following is the code that I am trying to do . Xpath_combined variable returns Boolean : true . Please help me in correcting the syntax or valid…
Auto-learner
  • 1,411
  • 7
  • 26
  • 43
0
votes
1 answer

How to click hidden angular elements in Selenium2Library using Robot framework

I have a hyperlink on my webpage.It matches when I find element through Xpath. When I execute the same it says: .//span[@translate='home.onboarding.name'] did not match any elements I have tried the same using selenium webdriver and it executes.…
Auto-learner
  • 1,411
  • 7
  • 26
  • 43
0
votes
1 answer

robot framework installation on ubuntu selenium2library cannot

Hi i tried to install Rf on ubuntu(VM box) like here: http://testingknols.blogspot.com/2014/05/robot-framework-installation-on-ubuntu.html but problem is with selenium2library. when I am using "S python" i got the message in termina "command not…
pav
  • 5
  • 7
0
votes
1 answer

Get File (txt or csv) in Robot Framework

I created a text file that has 1 value in it by using Create File keyword ${getDateLetter} = getValue name=date createFile Resources\\Client\\DateLetter.txt ${getDateLetter} In other script, I'm trying to read the value…
Ahmad Saifullah
  • 9
  • 1
  • 1
  • 2
0
votes
1 answer

Creating a unique string value from keyword and using it for Input Text keyword

I am trying to create a unique string by embedding epoch time stamp after a static string as: *** Keywords *** Unique Title [Return] ${title} ${secs}= Get Time epoch ${time}= Convert To String ${secs} {title}= Catenate…
Umair
  • 5
  • 4
0
votes
1 answer

Python 3.5.1 Cannot download Robot Framework library

I'm new to Python and I'm trying to automate a test with Robot Framework. When I tried downloading the library via pip I ran into some issues. I'm using Python 3.5.1, Robot Framework 3.0, PyCharm 2016.1(64), Output for command pip install…
radoptak
  • 1
  • 2
-1
votes
1 answer

How to create an array for input Data In ROBOT FRAMEWORK

How to create an array for input Data In ROBOT FRAMEWORK By default table should be like this.., After that, click Add Device, then some input I given. Now rows will be Created like this.. How can I give input as arrays for this table. Anyone try…
-1
votes
1 answer

Unable to find IN keyword in Robot Framework. How to use for loop without using IN keyword?

I want to use for loop to iterate the element in a list. but i think the library is missing. when IN keyword is taken it gives error. *** Test Cases *** Acuvue inquiry @{index} = BuiltIn.Create List a b FOR ${item} IN …
-1
votes
1 answer

How to pass arguments to keywords from testcase using robotframework?

i want to pass the arguments from testcase to keyword. what i am trying to do? i have the testcase with arguments like below *** Test Cases *** Test something happens Login ${val2} = somevalue1 ${val2} = somevalue2 ${name} = …
someuser2491
  • 1,848
  • 5
  • 27
  • 63
-1
votes
1 answer

Can I add my own code in the code generated by ride.py?

I am creating a scenario in Ride.py While ride.py gives me the code generated by the included Selenium2Library commands, I wish to do some additional code for the application testing. Can I add my own code? Will normal selenium/java/c#/python code…
Adwait
  • 23
  • 6
-1
votes
1 answer

Unable to select Salesforce Lookup window using robot framework selenium

I can not select new window after clicking on lookup icon *** Settings *** Suite Setup Run Keywords Test_Setup AND Salesorce_Auth *** Test Cases *** Create_Contact Click Element //*[@id="Contact_Tab"]/a …
-1
votes
1 answer

Can't pass a Test Execution result to a variable in Robo Framework

I am posting the results of automated tests to an offline forum. It would be nice to include PASS/FAIL in the forum post title but I'm having some difficulties retrieving the ${TEST STATUS} value - (obviously a hard-coded value works fine) . I've…
1 2 3
15
16