Class: Capybara::Driver::Culerity

Inherits:
Celerity show all
Defined in:
lib/capybara/driver/culerity_driver.rb

Instance Attribute Summary

Attributes inherited from Celerity

#app, #options, #rack_server

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, #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

.serverObject



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

#browserObject



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, options
    at_exit do
      @_browser.close
      @_browser.exit
    end
  end
  @_browser
end