Method: Watir::Adjacent#children
- Defined in:
- lib/watir/adjacent.rb
#children(opt = {}) ⇒ Object
Returns collection of elements of direct children of current element.
107 108 109 110 111 |
# File 'lib/watir/adjacent.rb', line 107 def children(opt = {}) raise ArgumentError, '#children can not take an index value' if opt[:index] xpath_adjacent(opt.merge(adjacent: :child, plural: true)) end |