Class: Capybara::Queries::MatchQuery Private
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
SelectorQuery ,
BaseQuery
|
|
Instance Chain:
self,
SelectorQuery ,
BaseQuery
|
|
Inherits: |
Capybara::Queries::SelectorQuery
|
Defined in: | lib/capybara/queries/match_query.rb |
Constant Summary
Class Method Summary
Instance Attribute Summary
SelectorQuery
- Inherited
BaseQuery
- Inherited
#expects_none? | Checks if a count of 0 is valid for the query Returns false if query does not have any count options specified. |
#options, #session_options, #session_options=, #count_specified? |
Instance Method Summary
- #visible Internal use only
- #assert_valid_keys private Internal use only
- #valid_keys private Internal use only
SelectorQuery
- Inherited
BaseQuery
- Inherited
#failure_message | Generates a failure message from the query description and count options. |
#matches_count? | Checks if the given count matches the query count options. |
#negative_failure_message, #wait, #assert_valid_keys, #count_message, #occurrences |
Constructor Details
This class inherits a constructor from Capybara::Queries::SelectorQuery
Instance Method Details
#assert_valid_keys (private)
[ GitHub ]# File 'lib/capybara/queries/match_query.rb', line 12
def assert_valid_keys = @options.keys & COUNT_KEYS unless .empty? raise ArgumentError, "Match queries don't support quantity options. Invalid keys - #{ .join(', ')}" end super end
#valid_keys (private)
[ GitHub ]# File 'lib/capybara/queries/match_query.rb', line 21
def valid_keys super - COUNT_KEYS end
#visible
[ GitHub ]# File 'lib/capybara/queries/match_query.rb', line 6
def visible .key?(:visible) ? super : :all end