class Watir::TableRow
Public Instance Methods
[](idx)
click to toggle source
Get the n'th cell (<th> or <td>) of this row
@return Watir::Cell
# File lib/watir/elements/table_row.rb, line 28 def [](idx) cell(index: idx) end
each(&block)
click to toggle source
Yields each TableCell
associated with this row.
@example
row = browser.tr row.each do |cell| puts cell.text end
@yieldparam [Watir::TableCell] element Iterate through the cells for this row.
# File lib/watir/elements/table_row.rb, line 18 def each(&block) cells.each(&block) end