Module: Watir::TableRowsContainer

Includes:
TableElementsContainer
Included in:
Table, TableSection
Defined in:
lib/watir-classic/table.rb

Instance Method Summary collapse

Instance Method Details

#row(how = {}, what = nil) ⇒ Object



57
58
59
60
61
# File 'lib/watir-classic/table.rb', line 57

def row(how={}, what=nil)
  specifiers = format_specifiers([:tr], how, what)
  index = specifiers.delete(:index) || 0
  rows(specifiers)[index]
end

#rows(how = {}, what = nil) ⇒ Object



52
53
54
55
# File 'lib/watir-classic/table.rb', line 52

def rows(how={}, what=nil)
  assert_exists
  table_elements(TableRowCollection, [:tr], how, what, @o.rows)
end