class Watir::RowCollection

Public Instance Methods

elements() click to toggle source
Calls superclass method Watir::ElementCollection#elements
# File lib/watir-webdriver/elements/row.rb, line 11
def elements
  # we do this craziness since the xpath used will find direct child rows
  # before any rows inside thead/tbody/tfoot...
  super.sort_by { |e| e.attribute(:rowIndex).to_i }
end