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

20 lines
297 B
Ruby
Raw Normal View History

module Capybara
module Queries
class MatchQuery < Capybara::Queries::SelectorQuery
def visible
2018-01-09 22:05:50 +00:00
if options.key?(:visible)
super
else
:all
end
end
2018-01-09 22:05:50 +00:00
private
def valid_keys
super - COUNT_KEYS
end
end
end
2018-01-09 22:05:50 +00:00
end