Class: WatirNokogiri::TableCellCollection
- Inherits:
-
ElementCollection
- Object
- ElementCollection
- WatirNokogiri::TableCellCollection
- Defined in:
- lib/watir-nokogiri/elements/table_cell.rb,
lib/watir-nokogiri/elements/generated.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 WatirNokogiri::ElementCollection
Instance Attribute Details
#locator_class ⇒ Object
19 20 21 |
# File 'lib/watir-nokogiri/elements/table_cell.rb', line 19 def locator_class @locator_class || super end |
Instance Method Details
#element_class ⇒ Object
306 307 308 |
# File 'lib/watir-nokogiri/elements/generated.rb', line 306 def element_class TableCell end |
#elements ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/watir-nokogiri/elements/table_cell.rb', line 23 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.get_attribute(:cellIndex).to_i } end elements end |