Method: Selenium::WebDriver::Firefox::Launcher#connect_until_stable
- Defined in:
- lib/selenium/webdriver/firefox/launcher.rb
permalink #connect_until_stable ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
72 73 74 75 76 77 78 79 |
# File 'lib/selenium/webdriver/firefox/launcher.rb', line 72 def connect_until_stable poller = SocketPoller.new(@host, @port, STABLE_CONNECTION_TIMEOUT) unless poller.connected? @binary.quit raise Error::WebDriverError, "unable to obtain stable firefox connection in #{STABLE_CONNECTION_TIMEOUT} seconds (#{@host}:#{@port})" end end |