teamcapybara--capybara/lib/capybara/queries/match_query.rb

21 lines
379 B
Ruby
Raw Normal View History

module Capybara
module Queries
class MatchQuery < Capybara::Queries::SelectorQuery
VALID_KEYS = [:text, :visible, :exact, :wait]
def visible
if options.has_key?(:visible)
super
else
:all
end
end
private
def valid_keys
2016-03-18 22:17:16 +00:00
VALID_KEYS + @selector.custom_filters.keys
end
end
end
end