Class: Selenium::TextField

Inherits:
HtmlElement show all
Defined in:
lib/selenium/text_field.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) ⇒ TextField

Returns a new instance of TextField.



4
5
6
# File 'lib/selenium/text_field.rb', line 4

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

Instance Method Details

#enter(value) ⇒ Object



8
9
10
# File 'lib/selenium/text_field.rb', line 8

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

#valueObject



12
13
14
# File 'lib/selenium/text_field.rb', line 12

def value
  @webpage.value(locator)
end