# File lib/capybara/session.rb, line 116 def current_path path = URI.parse(current_url).path path if path and not path.empty? end