module Capybara::Node::Actions
def choose(locator = nil, **options)
-
(Capybara::Node::Element)- The element chosen or the label clicked
Options Hash:
(**options)-
class(String, Array) -- Match fields that match the class(es) provided, Regexp -
name(String) -- Match fields that match the name attribute -
id(String, Regexp) -- Match fields that match the id attribute -
option(String) -- Value of the radio_button to choose
Parameters:
-
locator(String) -- Which radio button to choose
Overloads:
-
choose([locator], **options)
def choose(locator = nil, **options) _check_with_label(:radio_button, true, locator, **options) end