Class: Selenium::WebDriver::Firefox::Binary Private
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Firefox::Binary
- Defined in:
- lib/webdriver-firefox/firefox_binary.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- LONG_WAIT_TIMEOUT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
180
- LONG_QUIT_TIMEOUT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
10
Instance Method Summary collapse
- #quit ⇒ Object private
- #wait ⇒ Object private
Instance Method Details
#quit ⇒ 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.
12 13 14 15 16 17 18 |
# File 'lib/webdriver-firefox/firefox_binary.rb', line 12 def quit return unless @process @process.poll_for_exit LONG_QUIT_TIMEOUT rescue ChildProcess::TimeoutError # ok, force quit @process.stop LONG_QUIT_TIMEOUT end |
#wait ⇒ 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.
20 21 22 |
# File 'lib/webdriver-firefox/firefox_binary.rb', line 20 def wait @process.poll_for_exit(LONG_WAIT_TIMEOUT) if @process end |