Class: Watir::TableRowCollection
- Inherits:
-
ElementCollection
show all
- Defined in:
- lib/watir-webdriver/elements/generated.rb,
lib/watir-webdriver/elements/table_row.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
#[], #each, #first, #initialize, #last, #length, #to_a
Instance Attribute Details
#locator_class ⇒ Object
41
42
43
|
# File 'lib/watir-webdriver/elements/table_row.rb', line 41
def locator_class
@locator_class || super
end
|
Instance Method Details
#element_class ⇒ Object
306
307
308
|
# File 'lib/watir-webdriver/elements/generated.rb', line 306
def element_class
TableRow
end
|
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/watir-webdriver/elements/table_row.rb', line 29
def elements
elements = super
if locator_class == ChildRowLocator and @parent.kind_of? Table
elements = elements.sort_by { |row| row.attribute(:rowIndex).to_i }
end
elements
end
|