1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
This commit is contained in:
Thomas Walpole 2016-09-01 15:19:48 -07:00
parent 6dac198811
commit 87e8b105be

View file

@ -4,7 +4,7 @@ module Capybara
class SelectorQuery < Queries::BaseQuery
attr_accessor :selector, :locator, :options, :expression, :find, :negative
VALID_KEYS = [:text, :visible, :between, :count, :maximum, :minimum, :exact, :match, :wait, :filter_set]
VALID_KEYS = COUNT_KEYS + [:text, :visible, :exact, :match, :wait, :filter_set]
VALID_MATCH = [:first, :smart, :prefer_exact, :one]
def initialize(*args)
@ -129,8 +129,7 @@ module Capybara
private
def valid_keys
vk = COUNT_KEYS + [:text, :visible, :exact, :match, :wait, :filter_set]
vk + custom_keys
VALID_KEYS + custom_keys
end
def query_filters