Class: Crabfarm::Adapters::Browser::PhantomJs
- Inherits:
-
AbstractWebdriver
- Object
- Base
- AbstractWebdriver
- Crabfarm::Adapters::Browser::PhantomJs
- Defined in:
- lib/crabfarm/adapters/browser/phantom_js.rb
Instance Attribute Summary
Attributes inherited from AbstractWebdriver
Instance Method Summary collapse
Methods inherited from AbstractWebdriver
#build_driver, #extract_webdriver, #initialize, #release_driver, #reset_driver
Methods inherited from Base
#build_driver, #extract_webdriver, #headless?, #release_driver, #reset_driver
Constructor Details
This class inherits a constructor from Crabfarm::Adapters::Browser::AbstractWebdriver
Instance Method Details
#cleanup_driver_services ⇒ Object
14 15 16 17 |
# File 'lib/crabfarm/adapters/browser/phantom_js.rb', line 14 def cleanup_driver_services @phantom.stop unless @phantom.nil? @phantom = nil end |
#prepare_driver_services ⇒ Object
10 11 12 |
# File 'lib/crabfarm/adapters/browser/phantom_js.rb', line 10 def prepare_driver_services @phantom = load_and_start_phantom if @phantom.nil? end |