Class: Watir::CellCollection
- Inherits:
-
TableCellCollection
- Object
- ElementCollection
- TableCellCollection
- Watir::CellCollection
- Defined in:
- lib/watir/elements/cell.rb
Overview
Cell
Instance Method Summary collapse
Methods inherited from ElementCollection
#==, #[], #browser, #build, #each, #first, #initialize, #last, #locate, #reset!, #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 Waitable
Methods included from JSSnippets
Constructor Details
This class inherits a constructor from Watir::ElementCollection
Instance Method Details
#elements ⇒ Object
12 13 14 15 16 |
# File 'lib/watir/elements/cell.rb', line 12 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 |