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-6.13.0 lib/watir/elements/table_row.rb
watir-6.12.0 lib/watir/elements/table_row.rb
watir-6.11.0 lib/watir/elements/table_row.rb
watir-6.11.0.beta2 lib/watir/elements/table_row.rb
watir-6.11.0.beta1 lib/watir/elements/table_row.rb
watir-6.10.3 lib/watir/elements/table_row.rb
watir-6.10.2 lib/watir/elements/table_row.rb
watir-6.10.0 lib/watir/elements/table_row.rb
watir-6.9.1 lib/watir/elements/table_row.rb
watir-6.9.0 lib/watir/elements/table_row.rb
watir-6.8.4 lib/watir/elements/table_row.rb
watir-6.8.3 lib/watir/elements/table_row.rb
watir-6.8.2 lib/watir/elements/table_row.rb
watir-6.8.1 lib/watir/elements/table_row.rb
watir-6.8.0 lib/watir/elements/table_row.rb
watir-6.7.3 lib/watir/elements/table_row.rb
watir-6.7.2 lib/watir/elements/table_row.rb
watir-6.7.1 lib/watir/elements/table_row.rb
watir-6.7.0 lib/watir/elements/table_row.rb