Method: Selenium::WebDriver::Firefox::Binary#cope_with_mac_strangeness
- Defined in:
- lib/selenium/webdriver/firefox/binary.rb
#cope_with_mac_strangeness(args) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/selenium/webdriver/firefox/binary.rb', line 44 def cope_with_mac_strangeness(args) sleep 0.3 if @process.ugly_death? # process crashed, trying a restart. sleeping 5 seconds shorter than the java driver sleep 5 execute(*args) end # ensure we're ok sleep 0.3 if @process.ugly_death? raise Error::WebDriverError, "unable to start Firefox cleanly, args: #{args.inspect}" end end |