mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
21 lines
No EOL
401 B
Ruby
21 lines
No EOL
401 B
Ruby
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
|
|
[:text, :visible, :exact, :wait] + @selector.custom_filters.keys
|
|
end
|
|
end
|
|
end
|
|
end |