Class: Crabfarm::Adapters::Browser::PhantomJs

Inherits:
AbstractWebdriver show all
Defined in:
lib/crabfarm/adapters/browser/phantom_js.rb

Instance Attribute Summary

Attributes inherited from AbstractWebdriver

#config

Instance Method Summary collapse

Methods inherited from AbstractWebdriver

#build_driver, #initialize, #release_driver

Constructor Details

This class inherits a constructor from Crabfarm::Adapters::Browser::AbstractWebdriver

Instance Method Details

#cleanup_driver_servicesObject



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_servicesObject



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? and not Crabfarm.live?
end