Class: Watir::TableCellCollection
- Inherits:
-
ElementCollection
show all
- Defined in:
- lib/watir-webdriver/elements/generated.rb,
lib/watir-webdriver/elements/table_cell.rb
Instance Attribute Summary (collapse)
Instance Method Summary
(collapse)
#[], #each, #first, #initialize, #last, #length, #to_a
Instance Attribute Details
- (Object) locator_class
19
20
21
|
# File 'lib/watir-webdriver/elements/table_cell.rb', line 19
def locator_class
@locator_class || super
end
|
Instance Method Details
- (Object) element_class
302
303
304
|
# File 'lib/watir-webdriver/elements/generated.rb', line 302
def element_class
TableCell
end
|
- (Object) elements
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/watir-webdriver/elements/table_cell.rb', line 23
def elements
elements = super
if locator_class == ChildCellLocator
elements = elements.sort_by { |row| row.attribute(:cellIndex).to_i }
end
elements
end
|