Sha256: 40c32471185e2c9edb1a786775cb88ea76039d76d5dc75f51d78696230f185ac

Contents?: true

Size: 411 Bytes

Versions: 2

Compression:

Stored size: 411 Bytes

Contents

module Watir
  class TableRow < HTMLElement

    #
    # Get the n'th <td> of this element
    #
    # @return Watir::TableDataCell
    #

    def [](idx)
      td(:index, idx)
    end

    private

    def locate
      if @parent.kind_of?(Watir::Table)
        TableRowLocator.new(@parent.wd, @selector, self.class.attribute_list).locate
      else
        super
      end
    end

  end # TableRow
end # Watir

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
watir-webdriver-0.0.1.dev6 lib/watir-webdriver/elements/table_row.rb
watir-webdriver-0.0.1.dev5 lib/watir-webdriver/elements/table_row.rb