Class: Watir::RowCollection

Inherits:
TableRowCollection show all
Defined in:
lib/watir-webdriver/elements/row.rb

Instance Method Summary collapse

Methods inherited from ElementCollection

#[], #each, #first, #initialize, #last, #length, #to_a

Constructor Details

This class inherits a constructor from Watir::ElementCollection

Instance Method Details

#elementsObject


11
12
13
14
15
# 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