class Watir::RowCollection
Public Instance Methods
to_a()
click to toggle source
Calls superclass method
Watir::ElementCollection#to_a
# File lib/watir/elements/row.rb, line 10 def to_a # we do this craziness since the xpath used will find direct child rows # before any rows inside thead/tbody/tfoot... @to_a ||= super.sort_by { |e| e.attribute_value(:rowIndex).to_i } end