Module: PageObject::Platforms::WatirWebDriver::CheckBox

Defined in:
lib/page-object/platforms/watir_webdriver/check_box.rb

Instance Method Summary collapse

Instance Method Details

#checkObject

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

Returns:

  • (Boolean)


23
24
25
# File 'lib/page-object/platforms/watir_webdriver/check_box.rb', line 23

def checked?
  element.set?
end

#uncheckObject

uncheck the checkbox



16
17
18
# File 'lib/page-object/platforms/watir_webdriver/check_box.rb', line 16

def uncheck
  element.clear
end