Method: Capybara::UI::RadioButton#id

Defined in:
lib/capybara/ui/widgets/radio_button.rb

#idString

Returns The id of the checked button.

Returns:

  • (String)

    The id of the checked button.



38
39
40
# File 'lib/capybara/ui/widgets/radio_button.rb', line 38

def id
  visible?(:checked) ? widget(:checked).id : nil
end