Class: Selenium::TextArea

Inherits:
HtmlElement show all
Defined in:
lib/selenium/text_area.rb

Instance Attribute Summary

Attributes inherited from HtmlElement

#locator, #webpage

Instance Method Summary collapse

Methods inherited from HtmlElement

#browser, #click, #click_wait, #double_click, #key_press, #present?, #text

Constructor Details

#initialize(webpage, locator) ⇒ TextArea

Returns a new instance of TextArea.



3
4
5
# File 'lib/selenium/text_area.rb', line 3

def initialize(webpage, locator)
  super(webpage, locator)
end

Instance Method Details

#enter(value) ⇒ Object



7
8
9
# File 'lib/selenium/text_area.rb', line 7

def enter(value)
  @webpage.enter(@locator, value)
end

#valueObject



11
12
13
# File 'lib/selenium/text_area.rb', line 11

def value
  @webpage.value(@locator)
end