Module: Watir::UserEditable
Instance Method Summary collapse
-
#append(*args) ⇒ Object
(also: #<<)
Appends the given value to the text in the text field.
-
#clear ⇒ Object
Clears the text field.
-
#set(*args) ⇒ Object
(also: #value=)
Clear the element, the type in the given value.
Instance Method Details
#append(*args) ⇒ Object Also known as: <<
Appends the given value to the text in the text field.
25 26 27 28 29 30 |
# File 'lib/watir-webdriver/user_editable.rb', line 25 def append(*args) assert_exists assert_writable @element.send_keys(*args) end |
#clear ⇒ Object
Clears the text field.
37 38 39 40 |
# File 'lib/watir-webdriver/user_editable.rb', line 37 def clear assert_exists @element.clear end |
#set(*args) ⇒ Object Also known as: value=
Clear the element, the type in the given value.
10 11 12 13 14 15 16 |
# File 'lib/watir-webdriver/user_editable.rb', line 10 def set(*args) assert_exists assert_writable @element.clear @element.send_keys(*args) end |