Module: Watir::UserEditable
- Defined in:
- lib/test-factory/gem_ext.rb
Instance Method Summary collapse
-
#fit(args) ⇒ Object
Extends Watir’s methods.
Instance Method Details
#fit(args) ⇒ Object
Extends Watir’s methods. Use when the argument you are passing to a text field may be nil, in which case you don’t want to do anything with the page element.
122 123 124 125 126 127 128 129 130 |
# File 'lib/test-factory/gem_ext.rb', line 122 def fit(args) unless args==nil assert_exists assert_writable @element.clear @element.send_keys(args) end end |