class Capybara::Queries::CurrentPathQuery

def resolves_for?(session)

def resolves_for?(session)
  uri = ::Addressable::URI.parse(session.current_url)
  uri.query = nil if uri && options[:ignore_query]
  @actual_path = options[:url] ? uri.to_s : uri&.request_uri
  if @expected_path.is_a? Regexp
    @actual_path.to_s.match(@expected_path)
  else
    ::Addressable::URI.parse(@expected_path) == ::Addressable::URI.parse(@actual_path)
  end
end