module Capybara::Node::Actions
def check(locator, **options)
-
(Capybara::Node::Element)- The element checked or the label clicked
Options Hash:
(**options)-
:class(String, Array) -- Match fields that match the class(es) provided -
name(String) -- Match fields that match the name attribute -
id(String) -- Match fields that match the id attribute -
:option(String) -- Value of the checkbox to select
Parameters:
-
locator(String) -- Which check box to check
Overloads:
-
check([locator], options)
def check(locator, **options) _check_with_label(:checkbox, true, locator, **options) end