Module: PageObject::Platforms::WatirWebDriver::CheckBox
- Defined in:
- lib/page-object/platforms/watir_webdriver/check_box.rb
Instance Method Summary collapse
-
#check ⇒ Object
check the checkbox.
-
#checked? ⇒ Boolean
return true if checkbox is checked.
-
#uncheck ⇒ Object
uncheck the checkbox.
Instance Method Details
#check ⇒ Object
check the checkbox
9 10 11 |
# File 'lib/page-object/platforms/watir_webdriver/check_box.rb', line 9 def check element.set end |
#checked? ⇒ Boolean
return true if checkbox is checked
23 24 25 |
# File 'lib/page-object/platforms/watir_webdriver/check_box.rb', line 23 def checked? element.set? end |
#uncheck ⇒ Object
uncheck the checkbox
16 17 18 |
# File 'lib/page-object/platforms/watir_webdriver/check_box.rb', line 16 def uncheck element.clear end |