Class: Capybara::Selector::Filters::NodeFilter

Inherits:
Base
  • Object
show all
Defined in:
lib/capybara/selector/filters/node_filter.rb

Instance Method Summary collapse

Methods inherited from Base

#default, #default?, #handles_option?, #initialize, #matcher?, #skip?

Constructor Details

This class inherits a constructor from Capybara::Selector::Filters::Base

Instance Method Details

#matches?(node, name, value) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
12
13
# File 'lib/capybara/selector/filters/node_filter.rb', line 9

def matches?(node, name, value)
  apply(node, name, value, true)
rescue Capybara::ElementNotFound
  false
end