Class: Capybara::Driver::Culerity

Inherits:
Celerity
  • Object
show all
Defined in:
lib/capybara/driver/culerity.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.serverObject



5
6
7
8
9
10
11
12
13
# File 'lib/capybara/driver/culerity.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.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