Sha256: 2914793cc457a013cf986b227a5018e3cc63a4c9b63e1052eed5312c54a4da57

Contents?: true

Size: 589 Bytes

Versions: 39

Compression:

Stored size: 589 Bytes

Contents

module Watir
  class TableRow < HTMLElement
    include CellContainer
    include Enumerable

    #
    # 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.
    #

    def each(&block)
      cells.each(&block)
    end

    #
    # Get the n'th cell (<th> or <td>) of this row
    #
    # @return Watir::Cell
    #

    def [](idx)
      cell(index: idx)
    end
  end # TableRow
end # Watir

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
watir-7.1.0 lib/watir/elements/table_row.rb
watir-7.0.0 lib/watir/elements/table_row.rb
watir-7.0.0.beta5 lib/watir/elements/table_row.rb
watir-7.0.0.beta4 lib/watir/elements/table_row.rb
watir-7.0.0.beta3 lib/watir/elements/table_row.rb
watir-7.0.0.beta2 lib/watir/elements/table_row.rb
watir-7.0.0.beta1 lib/watir/elements/table_row.rb
watir-6.19.1 lib/watir/elements/table_row.rb
watir-6.19.0 lib/watir/elements/table_row.rb
watir-6.18.0 lib/watir/elements/table_row.rb
watir-6.17.0 lib/watir/elements/table_row.rb
watir-6.16.5 lib/watir/elements/table_row.rb
watir-6.16.4 lib/watir/elements/table_row.rb
watir-6.16.3 lib/watir/elements/table_row.rb
watir-6.16.2 lib/watir/elements/table_row.rb
watir-6.16.1 lib/watir/elements/table_row.rb
watir-6.16.0 lib/watir/elements/table_row.rb
watir-6.15.1 lib/watir/elements/table_row.rb
watir-6.15.0 lib/watir/elements/table_row.rb
watir-6.14.0 lib/watir/elements/table_row.rb