Class: Symbiont::WebObjects::TextField
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, #visible?, #wait_until, #when_actionable, #when_not_actionable, #when_not_visible, #when_visible
Constructor Details
#initialize(web_object) ⇒ TextField
Returns a new instance of TextField.
5
6
7
|
# File 'lib/symbiont/web_objects/text_field.rb', line 5
def initialize(web_object)
@web_object = web_object
end
|
Class Method Details
.usable_selectors ⇒ Object
21
22
23
|
# File 'lib/symbiont/web_objects/text_field.rb', line 21
def self.usable_selectors
super + [:title, :value, :text, :label]
end
|
Instance Method Details
#append(text) ⇒ Object
17
18
19
|
# File 'lib/symbiont/web_objects/text_field.rb', line 17
def append(text)
web_object.send_keys text
end
|
#value ⇒ Object
9
10
11
|
# File 'lib/symbiont/web_objects/text_field.rb', line 9
def value
web_object.value
end
|
#value=(value) ⇒ Object
13
14
15
|
# File 'lib/symbiont/web_objects/text_field.rb', line 13
def value=(value)
web_object.set value
end
|