module Watir::RowContainer
Public Instance Methods
row(*args)
click to toggle source
Returns table row.
# File lib/watir-webdriver/row_container.rb, line 8 def row(*args) Row.new(self, extract_selector(args).merge(tag_name: "tr")) end
rows(*args)
click to toggle source
Returns table rows collection.
# File lib/watir-webdriver/row_container.rb, line 16 def rows(*args) RowCollection.new(self, extract_selector(args).merge(tag_name: "tr")) 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-webdriver/row_container.rb, line 26 def strings assert_exists rows.inject [] do |res, row| res << row.cells.map(&:text) end end
Also aliased as: to_a