Module: RadioButtonHelper
- Defined in:
- lib/watir_helper/radio_button_helper.rb
Instance Method Summary collapse
-
#clear_radio_button(property, propertyvalue) ⇒ Object
Clear a radio button.
-
#click_radio_button(property, propertyvalue) ⇒ Object
Click a radio button.
-
#exists_radio_button(property, propertyvalue) ⇒ Object
Check whether a radio button exists or not.
-
#flash_radio_button(property, propertyvalue) ⇒ Object
Highlight or Flash a radio button.
-
#is_checked_radio_button(property, propertyvalue) ⇒ Object
Check whether a radio button is checked or not.
Instance Method Details
#clear_radio_button(property, propertyvalue) ⇒ Object
Clear a radio button.
12 13 14 15 |
# File 'lib/watir_helper/radio_button_helper.rb', line 12 def (property,propertyvalue) propertyvalue=/#{propertyvalue}/ $ie.radio(property.intern,propertyvalue).clear end |
#click_radio_button(property, propertyvalue) ⇒ Object
Click a radio button.
6 7 8 9 |
# File 'lib/watir_helper/radio_button_helper.rb', line 6 def (property,propertyvalue) propertyvalue=/#{propertyvalue}/ $ie.radio(property.intern,propertyvalue).set end |
#exists_radio_button(property, propertyvalue) ⇒ Object
Check whether a radio button exists or not.
24 25 26 27 |
# File 'lib/watir_helper/radio_button_helper.rb', line 24 def (property,propertyvalue) propertyvalue=/#{propertyvalue}/ $ie.radio(property.intern,propertyvalue).exists? end |
#flash_radio_button(property, propertyvalue) ⇒ Object
Highlight or Flash a radio button.
18 19 20 21 |
# File 'lib/watir_helper/radio_button_helper.rb', line 18 def (property,propertyvalue) propertyvalue=/#{propertyvalue}/ $ie.radio(property.intern,propertyvalue).flash end |
#is_checked_radio_button(property, propertyvalue) ⇒ Object
Check whether a radio button is checked or not.
30 31 32 33 |
# File 'lib/watir_helper/radio_button_helper.rb', line 30 def (property,propertyvalue) propertyvalue=/#{propertyvalue}/ $ie.radio(property.intern,propertyvalue).checked? end |