How to get the full URL with the current path in Capybara December 2, 2023 by Tarik Try this: url = URI.parse(current_url)