Module: Watir::TableRowsContainer
- Includes:
- TableElementsContainer
- Included in:
- Table, TableSection
- Defined in:
- lib/watir-classic/table.rb
Instance Method Summary collapse
-
#row(how = {}, what = nil) ⇒ TableRow
Row inside of the Table.
-
#rows(how = {}, what = nil) ⇒ TableRowCollection
Rows inside of the Table.
Instance Method Details
#row(how = {}, what = nil) ⇒ TableRow
Returns row inside of the Watir::Table.
70 71 72 73 74 |
# File 'lib/watir-classic/table.rb', line 70 def row(how={}, what=nil) specifiers = format_specifiers([:tr], how, what) index = specifiers.delete(:index) || 0 rows(specifiers)[index] end |
#rows(how = {}, what = nil) ⇒ TableRowCollection
Returns rows inside of the Watir::Table.
63 64 65 66 |
# File 'lib/watir-classic/table.rb', line 63 def rows(how={}, what=nil) assert_exists table_elements(TableRowCollection, [:tr], how, what, @o.rows) end |