Class: Watir::Container::Checkbox
- Inherits:
-
InputElement
- Object
- HtmlElement
- InputElement
- Watir::Container::Checkbox
- Defined in:
- lib/safariwatir.rb
Direct Known Subclasses
Constant Summary
Constants inherited from HtmlElement
Instance Attribute Summary
Attributes inherited from HtmlElement
Instance Method Summary collapse
- #by_value ⇒ Object
-
#checked? ⇒ Boolean
Contributed by Kyle Campos.
- #set(check_it = true) ⇒ Object
Methods inherited from InputElement
Methods included from Clickable
Methods inherited from HtmlElement
#exists?, #name, #operate, #speak, #tag
Instance Method Details
#by_value ⇒ Object
203 204 205 |
# File 'lib/safariwatir.rb', line 203 def by_value @value end |
#checked? ⇒ Boolean
Contributed by Kyle Campos
208 209 210 |
# File 'lib/safariwatir.rb', line 208 def checked? @scripter.checkbox_is_checked?(self) end |
#set(check_it = true) ⇒ Object
212 213 214 215 216 |
# File 'lib/safariwatir.rb', line 212 def set(check_it = true) return if check_it && checked? return if !check_it && !checked? click end |