class Object
Public Instance Methods
current_host_with_port()
click to toggle source
For some reason, current_host includes scheme and host but not port
# File lib/capybara/chrome_response_headers.rb, line 43 def current_host_with_port uri = URI.parse(current_url) "#{uri.scheme}://#{uri.host}:#{uri.port}" end
request_for_url()
click to toggle source
Can't call it request_for because that conflicts with a method by that name in selenium/webdriver/remote/http/default.rb
# File lib/capybara/chrome_response_headers.rb, line 34 def request_for_url driver.request_for_url end
response_for_url()
click to toggle source
# File lib/capybara/chrome_response_headers.rb, line 38 def response_for_url driver.response_for_url end
status_text()
click to toggle source
Returns a client for the browser's dev tools protocol. Not supported by all drivers.
# File lib/capybara/chrome_response_headers.rb, line 28 def status_text driver.status_text end