Class: Watir::CellCollection

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

Instance Method Summary collapse

Methods inherited from ElementCollection

#==, #[], #browser, #build, #each, #first, #initialize, #last, #locate, #to_a

Methods included from Locators::ClassHelpers

#class_from_string, #element_class_name, #element_matcher_class, #locator, #locator_class, #selector_builder, #selector_builder_class

Methods included from JSSnippets

#execute_js

Constructor Details

This class inherits a constructor from Watir::ElementCollection

Instance Method Details

#elementsObject


10
11
12
13
14
# File 'lib/watir/elements/cell.rb', line 10

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