Module: RadioButtonHelper
- Defined in:
- lib/watir_helper/radio_button_helper.rb
Instance Method Summary collapse
-
#clear_radio_button(browser_handle, property, property_value) ⇒ Object
Clear a radio button.
-
#click_radio_button(browser_handle, property, property_value) ⇒ Object
Click a radio button.
-
#exists_radio_button?(browser_handle, property, property_value) ⇒ Boolean
Check whether a radio button exists or not.
-
#flash_radio_button(browser_handle, property, property_value) ⇒ Object
Highlight or Flash a radio button.
-
#is_radio_button_checked?(browser_handle, property, property_value) ⇒ Boolean
Check whether a radio button is checked or not.
Instance Method Details
#clear_radio_button(browser_handle, property, property_value) ⇒ Object
Clear a radio button.
14 15 16 |
# File 'lib/watir_helper/radio_button_helper.rb', line 14 def (browser_handle, property, property_value) browser_handle.radio(property.intern, /#{property_value}/).clear end |
#click_radio_button(browser_handle, property, property_value) ⇒ Object
Click a radio button.
9 10 11 |
# File 'lib/watir_helper/radio_button_helper.rb', line 9 def (browser_handle, property, property_value) browser_handle.radio(property.intern, /#{property_value}/).set end |
#exists_radio_button?(browser_handle, property, property_value) ⇒ Boolean
Check whether a radio button exists or not.
24 25 26 |
# File 'lib/watir_helper/radio_button_helper.rb', line 24 def (browser_handle, property, property_value) browser_handle.radio(property.intern, /#{property_value}/).exists? end |
#flash_radio_button(browser_handle, property, property_value) ⇒ Object
Highlight or Flash a radio button.
19 20 21 |
# File 'lib/watir_helper/radio_button_helper.rb', line 19 def (browser_handle, property, property_value) browser_handle.radio(property.intern, /#{property_value}/).flash end |
#is_radio_button_checked?(browser_handle, property, property_value) ⇒ Boolean
Check whether a radio button is checked or not.
29 30 31 |
# File 'lib/watir_helper/radio_button_helper.rb', line 29 def (browser_handle, property, property_value) browser_handle.radio(property.intern, /#{property_value}/).checked? end |