module Capybara::Node::Actions

def choose(locator = nil, **options)

Returns:
  • (Capybara::Node::Element) - The element chosen or the label clicked

Options Hash: (**options)
  • class (String, Array, Regexp) -- Match fields that match the class(es) provided
  • 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