Sha256: 81867fb48d538b93420440030642be5d009b6cae59b3ce47099ba12b8aa72212

Contents?: true

Size: 441 Bytes

Versions: 8

Compression:

Stored size: 441 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)
        @parent.assert_exists
        TableRowLocator.new(@parent.wd, @selector, self.class.attribute_list).locate
      else
        super
      end
    end

  end # TableRow
end # Watir

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
watir-webdriver-0.0.7 lib/watir-webdriver/elements/table_row.rb
watir-webdriver-0.0.6 lib/watir-webdriver/elements/table_row.rb
watir-webdriver-0.0.5 lib/watir-webdriver/elements/table_row.rb
watir-webdriver-0.0.4 lib/watir-webdriver/elements/table_row.rb
watir-webdriver-0.0.3 lib/watir-webdriver/elements/table_row.rb
watir-webdriver-0.0.2 lib/watir-webdriver/elements/table_row.rb
watir-webdriver-0.0.1 lib/watir-webdriver/elements/table_row.rb
watir-webdriver-0.0.1.dev7 lib/watir-webdriver/elements/table_row.rb