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.
149 150 151 152 153 154 155 156 157 |
# File 'lib/test-factory/gem_ext.rb', line 149 def fit(args) unless args==nil assert_exists assert_writable @element.clear @element.send_keys(args) end end |