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.
142 143 144 145 146 147 148 149 150 |
# File 'lib/test-factory/gem_ext.rb', line 142 def fit(args) unless args==nil assert_exists assert_writable @element.clear @element.send_keys(args) end end |