Module: RadioButtonHelper

Defined in:
lib/watir_helper/radio_button_helper.rb

Instance Method Summary collapse

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 clear_radio_button(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 click_radio_button(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 exists_radio_button(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 flash_radio_button(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 is_checked_radio_button(property,propertyvalue)
  propertyvalue=/#{propertyvalue}/
 $ie.radio(property.intern,propertyvalue).checked?
end