Class: Capybara::Driver::Webkit::RemoteBrowser
- Inherits:
-
Browser
- Object
- Browser
- Capybara::Driver::Webkit::RemoteBrowser
- Defined in:
- lib/capybara/driver/webkit/remote_browser.rb
Instance Attribute Summary collapse
-
#remote_host ⇒ Object
readonly
Returns the value of attribute remote_host.
Instance Method Summary collapse
- #disconnect! ⇒ Object
-
#initialize(hostname, port, options = { }) ⇒ RemoteBrowser
constructor
A new instance of RemoteBrowser.
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, = { }) @connection = Capybara::Driver::Webkit::RemoteConnection.new(hostname, port, ) super(@connection) end |
Instance Attribute Details
#remote_host ⇒ Object (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 |