Class: Capybara::Cuprite::Driver
- Inherits:
-
Object
- Object
- Capybara::Cuprite::Driver
- Defined in:
- lib/tanakai/capybara_ext/cuprite/driver.rb
Instance Method Summary collapse
Instance Method Details
#pid ⇒ Object
5 6 7 |
# File 'lib/tanakai/capybara_ext/cuprite/driver.rb', line 5 def pid @pid ||= `lsof -i tcp:#{port} -t`.strip.to_i end |
#port ⇒ Object
9 10 11 |
# File 'lib/tanakai/capybara_ext/cuprite/driver.rb', line 9 def port @port ||= browser.client.instance_variable_get("@ws").instance_variable_get("@driver").instance_variable_get("@socket").instance_variable_get("@sock").remote_address.inspect_sockaddr.split(':').last end |