Reputation: 779
I'm using watir-webdriver for testing.
I seem to be having a rather odd issue where one of my tests passes with google chrome but fails on firefox, I just get a runtime error, doesn't seem to be any more information than that.
-> Error: An error has occured (RuntimeError)
The function is simply just selecting two options from two input lists
code
def selectSprint(team, sprint)
@browser.div(:id, "sprintTitle").click #Navigate to the Team/Sprint drop down boxes
@browser.div(:id, "teamTitle").wait_until_present
@browser.div(:id, "teamTitle").select_list(:id, "Select").select("#{team}")
@browser.div(:id, "sprintTitle").wait_until_present #Move to Sprint drop down box
@browser.div(:id, "sprintTitle").select_list(:id, "Select").select("#{sprint}")
$log.debug("Team and sprint successfully selected")
@browser.div(:id => "mainBoard").wait_until_present #checks if page has updated
rescue => e
puts "Error: #{e}"
return true
$log.info("Method "+"#{__method__}"+" has finished ")
return true
end
Upvotes: 0
Views: 181
Reputation: 317
The waiting and existence methods don't work with Firefox 17, so you'll have to revert to Firefox 16 for the time being. I've heard that an update to watir-webdriver is being released next week to resolve the issues with Firefox 17.
Upvotes: 2
Reputation: 349
If your script is running successfully in one browser then it should run in all, it might be happening because of Firefox browser version you are using, even I had such kind of issue and then I updated the browser and after that issue got resolved.
Update your Firefox and then try again to run your test.
Upvotes: 0