Class: Sapphire::WebAbstractions::CheckBox
- Defined in:
- lib/sapphire/WebAbstractions/Controls/CheckBox.rb
Instance Method Summary collapse
Methods inherited from Control
#Click, #Equals, #Find, #FindAll, #FindAllBy, #FindBy, #FindParent, #FindWithoutWait, #FindWithoutWaitBy, #MouseOver, #Text, #initialize
Constructor Details
This class inherits a constructor from Sapphire::WebAbstractions::Control
Instance Method Details
#Check(value) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/sapphire/WebAbstractions/Controls/CheckBox.rb', line 4 def Check (value) if value && self.IsChecked return; end if !value && !self.IsChecked return; end radio = self.Find radio.click end |
#IsChecked ⇒ Object
19 20 21 22 23 24 |
# File 'lib/sapphire/WebAbstractions/Controls/CheckBox.rb', line 19 def IsChecked radio = self.Find radio.attribute("checked"); end |