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, #execute_script, #find, #initialize, #reset!, #response_headers, #source, #status_code, #visit, #wait?
Methods inherited from Base
#body, #cleanup!, #current_url, #evaluate_script, #execute_script, #find, #has_shortcircuit_timeout?, #reset!, #response_headers, #source, #status_code, #visit, #wait?, #wait_until, #within_frame, #within_window
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 24 |
# File 'lib/capybara/driver/culerity_driver.rb', line 15 def browser unless @_browser @_browser = ::Culerity::RemoteBrowserProxy.new self.class.server, at_exit do @_browser.close @_browser.exit end end @_browser end |