module Watir::RowContainer

Public Instance Methods

row(*args) click to toggle source

Returns table row.

# File lib/watir/row_container.rb, line 7
def row(*args)
  Row.new(self, extract_selector(args))
end
rows(*args) click to toggle source

Returns table rows collection.

# File lib/watir/row_container.rb, line 15
def rows(*args)
  RowCollection.new(self, extract_selector(args))
end
strings() click to toggle source

The table as a 2D Array of strings with the text of each cell.

@return [Array<Array<String>>]

# File lib/watir/row_container.rb, line 25
def strings
  wait_for_exists

  rows.inject [] do |res, row|
    res << row.cells.map(&:text)
  end
end
Also aliased as: to_a
to_a()
Alias for: strings