Method: Capybara::Node::Matchers#has_no_unchecked_field?

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

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

Checks if the page or current node has no radio button or checkbox with the given label, value or id, or test_id attribute that is currently unchecked.

Parameters:

  • locator (String) (defaults to: nil)

    The label, name or id of an unchecked field

Returns:

  • (Boolean)

    Whether it doesn't exist



487
488
489
# File 'lib/capybara/node/matchers.rb', line 487

def has_no_unchecked_field?(locator = nil, **options, &optional_filter_block)
  has_no_selector?(:field, locator, **options.merge(unchecked: true), &optional_filter_block)
end