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
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.