Module: Fluent::Platforms::WatirWebDriver::CheckBox
- Defined in:
- lib/fluent/platform_watir/platform_web_elements/checkbox.rb
Instance Method Summary collapse
Instance Method Details
#check ⇒ Object
12 13 14 |
# File 'lib/fluent/platform_watir/platform_web_elements/checkbox.rb', line 12 def check web_element.set end |
#checked? ⇒ Boolean Also known as: set?
6 7 8 |
# File 'lib/fluent/platform_watir/platform_web_elements/checkbox.rb', line 6 def checked? web_element.set? end |
#set(state = true) ⇒ Object
16 17 18 19 |
# File 'lib/fluent/platform_watir/platform_web_elements/checkbox.rb', line 16 def set(state=true) web_element.set if state web_element.clear unless state end |
#uncheck ⇒ Object
21 22 23 |
# File 'lib/fluent/platform_watir/platform_web_elements/checkbox.rb', line 21 def uncheck web_element.clear end |