Class: Watir::CellCollection

Inherits:
TableCellCollection show all
Defined in:
lib/watir-webdriver/elements/cell.rb

Overview

Cell

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/cell.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(:cellIndex).to_i }
end