Method: XPath::HTML#fillable_field
- Defined in:
- lib/xpath/html.rb
#fillable_field(locator, options = {}) ⇒ Object
41 42 43 44 45 46 |
# File 'lib/xpath/html.rb', line 41 def fillable_field(locator, ={}) xpath = descendant(:input, :textarea)[~attr(:type).one_of('submit', 'image', 'radio', 'checkbox', 'hidden', 'file')] xpath = locate_field(xpath, locator) xpath = xpath[field_value([:with])] if .has_key?(:with) xpath end |