Any ideas why I cannot make it work on Jenkins? |
When I run the test locally using RIDE/Firefox, it passes 100% of the time.
When I push them to Jenkins, they fail with "Element locator ' did not match any elements after 1 minute"
Here is what the code looks like:
Open Browser <URL>
Wait Until Element Is Visible //div[@class='modal-content']
Focus //div[@class='Select-input ']/input
Input Text //div[@class='Select-input ']/input ${city}
sleep 3 seconds
Wait Until Element Is Visible //div[@class='Select-menu-outer'] timeout=60 seconds
Click Element //div[@data-reactid='.5.1.0.0.$=10.0.0.0.0.1.0.0.2.0.$option-${city}']
Wait Until Page Contains Element //tr[@data-resultid] timeout=5 seconds error="No offers where shown on the hitlist"
Any ideas why I cannot make it work on Jenkins?
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Pybot mytestcase.txt & (notice the & is to run the task in the background)
3) see what is actually going on on the test case
Sometimes these problems are just related to a difference in Firefox and the selenium library,make sure your configuration is the same as the one you have on your machine or experiment with different versions,you might just find a trade off
Good testing!
If i have tested things based on my local, in foreground, a UI test, I would do same set up, in the remote box, from where UI test are to be executed