Class: Symbiont::WebObjects::CheckBox
Instance Attribute Summary
Attributes inherited from WebObject
#web_object
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from WebObject
#==, #attribute, #clear, #click, #disabled?, #double_click, #enabled?, #exists?, #fire_event, #flash, #focus, #hover, #html, #id, #inspect, #parent, provide_locator_for, #scroll_into_view, selector_mapping, #send_keys, #style, #tag_name, #text, #value, #visible?, #wait_until, #when_actionable, #when_not_actionable, #when_not_visible, #when_visible
Constructor Details
#initialize(web_object) ⇒ CheckBox
Returns a new instance of CheckBox.
6
7
8
|
# File 'lib/symbiont/web_objects/checkbox.rb', line 6
def initialize(web_object)
@web_object = web_object
end
|
Class Method Details
.usable_selectors ⇒ Object
22
23
24
|
# File 'lib/symbiont/web_objects/checkbox.rb', line 22
def self.usable_selectors
super + [:value, :label]
end
|
Instance Method Details
#check ⇒ Object
10
11
12
|
# File 'lib/symbiont/web_objects/checkbox.rb', line 10
def check
web_object.set
end
|
#checked? ⇒ Boolean
18
19
20
|
# File 'lib/symbiont/web_objects/checkbox.rb', line 18
def checked?
web_object.set?
end
|
#uncheck ⇒ Object
14
15
16
|
# File 'lib/symbiont/web_objects/checkbox.rb', line 14
def uncheck
web_object.clear
end
|