Class: Selenium::TextField
- Inherits:
-
HtmlElement
- Object
- HtmlElement
- Selenium::TextField
- Defined in:
- lib/selenium/text_field.rb
Instance Attribute Summary
Attributes inherited from HtmlElement
Instance Method Summary collapse
- #enter(value) ⇒ Object
-
#initialize(webpage, locator) ⇒ TextField
constructor
A new instance of TextField.
- #value ⇒ Object
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 |
#value ⇒ Object
12 13 14 |
# File 'lib/selenium/text_field.rb', line 12 def value @webpage.value(locator) end |