Class: Symbiont::WebObjects::TextArea

Inherits:
WebObject
  • Object
show all
Defined in:
lib/symbiont/web_objects/text_area.rb

Instance Attribute Summary

Attributes inherited from WebObject

#web_object

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from WebObject

#==, #attribute, #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) ⇒ TextArea

Returns a new instance of TextArea.



5
6
7
# File 'lib/symbiont/web_objects/text_area.rb', line 5

def initialize(web_object)
  @web_object = web_object
end

Class Method Details

.usable_selectorsObject



17
18
19
# File 'lib/symbiont/web_objects/text_area.rb', line 17

def self.usable_selectors
  super + [:title, :value, :text, :label]
end

Instance Method Details

#clearObject



13
14
15
# File 'lib/symbiont/web_objects/text_area.rb', line 13

def clear
  web_object.wd.clear
end

#value=(value) ⇒ Object



9
10
11
# File 'lib/symbiont/web_objects/text_area.rb', line 9

def value=(value)
  web_object.set value
end