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


228
229
230
# File 'lib/capybara/session.rb', line 228

def current_url
  driver.current_url
end