Class: Watir::TableCellCollection
- Inherits:
-
ElementCollection
- Object
- ElementCollection
- Watir::TableCellCollection
- Defined in:
- lib/watir-webdriver/elements/table_cell.rb,
lib/watir-webdriver/elements/html_elements.rb
Overview
TableCell
Instance Attribute Summary collapse
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 Attribute Details
#locator_class ⇒ Object
17 18 19 |
# File 'lib/watir-webdriver/elements/table_cell.rb', line 17 def locator_class @locator_class || super end |
Instance Method Details
#element_class ⇒ Object
574 575 576 |
# File 'lib/watir-webdriver/elements/html_elements.rb', line 574 def element_class TableCell end |
#elements ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/watir-webdriver/elements/table_cell.rb', line 21 def elements # we do this craziness since the xpath used will find direct child rows # before any rows inside thead/tbody/tfoot... elements = super if locator_class == ChildCellLocator elements = elements.sort_by { |row| row.attribute(:cellIndex).to_i } end elements end |