Class: Selenium::TextField
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
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
|