Class: Capybara::Driver::Webkit::RemoteBrowser

Inherits:
Browser
  • Object
show all
Defined in:
lib/capybara/driver/webkit/remote_browser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostname, port, options = { }) ⇒ RemoteBrowser

Returns a new instance of RemoteBrowser.



32
33
34
35
# File 'lib/capybara/driver/webkit/remote_browser.rb', line 32

def initialize(hostname, port, options = { })
  @connection = Capybara::Driver::Webkit::RemoteConnection.new(hostname, port, options)
  super(@connection)
end

Instance Attribute Details

#remote_hostObject (readonly)

Returns the value of attribute remote_host.



30
31
32
# File 'lib/capybara/driver/webkit/remote_browser.rb', line 30

def remote_host
  @remote_host
end

Instance Method Details

#disconnect!Object



37
38
39
40
# File 'lib/capybara/driver/webkit/remote_browser.rb', line 37

def disconnect!
  @connection.close rescue nil
  true
end