Method: Capybara::Session#current_url

Defined in:
lib/capybara/session.rb

#current_urlString

Returns Fully qualified URL of the current page.

Returns:

  • (String)

    Fully qualified URL of the current page



231
232
233
# File 'lib/capybara/session.rb', line 231

def current_url
  driver.current_url
end