123456789_123456789_123456789_123456789_123456789_

Class: Capybara::RSpecMatchers::Matchers::MatchSelector

Class Method Summary

HaveSelector - Inherited

Base - Inherited

Instance Attribute Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from Capybara::RSpecMatchers::Matchers::HaveSelector

Instance Method Details

#description

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/match_selector.rb', line 17

def description
  "match #{query.description}"
end

#element_does_not_match?(el) ⇒ Boolean

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/match_selector.rb', line 13

def element_does_not_match?(el)
  el.assert_not_matches_selector(*@args, **session_query_options, &@filter_block)
end

#element_matches?(el) ⇒ Boolean

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/match_selector.rb', line 9

def element_matches?(el)
  el.assert_matches_selector(*@args, **session_query_options, &@filter_block)
end

#query

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/match_selector.rb', line 21

def query
  @query ||= Capybara::Queries::MatchQuery.new(*session_query_args, **session_query_options, &@filter_block)
end