Class: Watir::Radio
- Inherits:
-
Object
- Object
- Watir::Radio
- Defined in:
- lib/watir-formhandler/radio.rb
Overview
Extends the Watir::Radio class to add #set and #field_value methods.
Instance Method Summary collapse
-
#field_value ⇒ Boolean
Returns whether this CheckBox is set or not.
-
#set(value) ⇒ Object
Clicks this Radio unless #checked? returns the same value as the given one.
Instance Method Details
#field_value ⇒ Boolean
Returns whether this CheckBox is set or not.
16 17 18 |
# File 'lib/watir-formhandler/radio.rb', line 16 def field_value checked? end |
#set(value) ⇒ Object
Clicks this Radio unless #checked? returns the same value as the given one.
9 10 11 |
# File 'lib/watir-formhandler/radio.rb', line 9 def set(value) click unless checked? || !value end |