123456789_123456789_123456789_123456789_123456789_

Class: Capybara::RSpecMatchers::Matchers::HaveAnySelectors

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
self, WrappedElementMatcher, Base, Compound, RSpec::Matchers::Composable
Inherits: Capybara::RSpecMatchers::Matchers::WrappedElementMatcher
Defined in: lib/capybara/rspec/matchers/have_selector.rb

Class Method Summary

Base - Inherited

Instance Attribute Summary

Instance Method Summary

Constructor Details

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

Instance Method Details

#description

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 65

def description = 'have any selectors'

#does_not_match?(el) ⇒ Boolean

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 61

def does_not_match?(el)
  el.assert_none_of_selectors(*@args, **session_query_options, &@filter_block)
end

#element_matches?(el) ⇒ Boolean

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 57

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