Method: Capybara::Node::Matchers#has_no_select?

Defined in:
lib/capybara/node/matchers.rb

#has_no_select?(locator = nil, **options, &optional_filter_block) ⇒ Boolean

Checks if the page or current node has no select field with the given label, name or id. See #has_select?.

Parameters:

  • locator (String) (defaults to: nil)

    The label, name or id of a select box

  • options (Hash)

    a customizable set of options

Returns:

  • (Boolean)

    Whether it doesn't exist



532
533
534
# File 'lib/capybara/node/matchers.rb', line 532

def has_no_select?(locator = nil, **options, &optional_filter_block)
  has_no_selector?(:select, locator, **options, &optional_filter_block)
end