Class: Capybara::Driver::Culerity
- Defined in:
- lib/capybara/driver/culerity_driver.rb
Instance Attribute Summary
Attributes inherited from Celerity
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Celerity
#body, #current_url, #evaluate_script, #find, #initialize, #response_headers, #source, #visit, #wait?
Methods inherited from Base
#body, #cleanup!, #current_url, #evaluate_script, #find, #has_shortcircuit_timeout?, #response_headers, #source, #visit, #wait?, #wait_until, #within_frame
Constructor Details
This class inherits a constructor from Capybara::Driver::Celerity
Class Method Details
.server ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/capybara/driver/culerity_driver.rb', line 5 def self.server unless @_server @_server = ::Culerity::run_server at_exit do @_server.close end end @_server end |
Instance Method Details
#browser ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/capybara/driver/culerity_driver.rb', line 15 def browser unless @_browser @_browser = ::Culerity::RemoteBrowserProxy.new self.class.server, {:browser => :firefox, :log_level => :off} at_exit do @_browser.exit end end @_browser end |