# File lib/capybara/node/finders.rb, line 181 def matches_options(node, options) return false if options[:text] and not node.text.match(options[:text]) return false if options[:visible] and not node.visible? return false if options[:with] and not node.value == options[:with] return false if options[:checked] and not node.checked? return false if options[:unchecked] and node.checked? return false if options[:selected] and not has_selected_options?(node, options[:selected]) true end