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