Method: Capybara::Node::Matchers#has_unchecked_field?
- Defined in:
- lib/capybara/node/matchers.rb
#has_unchecked_field?(locator = nil, **options, &optional_filter_block) ⇒ Boolean
Checks if the page or current node has a radio button or checkbox with the given label, value or id, or test_id attribute that is currently unchecked.
474 475 476 |
# File 'lib/capybara/node/matchers.rb', line 474 def has_unchecked_field?(locator = nil, **, &optional_filter_block) has_selector?(:field, locator, **.merge(unchecked: true), &optional_filter_block) end |