Sha256: 2c03d7f2d55c0b32921086306063cc527d82177d293818f5e4bf69561151fef2

Contents?: true

Size: 581 Bytes

Versions: 3

Compression:

Stored size: 581 Bytes

Contents

module Watir
  module CellContainer

    #
    # Returns table cell.
    #
    # @return [TableCell]
    #

    def cell(*args)
      cell = TableCell.new(self, extract_selector(args).merge(tag_name: /^(th|td)$/))
      cell.locator_class = ChildCellLocator

      cell
    end

    #
    # Returns table cells collection.
    #
    # @return [TableCell]
    #

    def cells(*args)
      cells = TableCellCollection.new(self, extract_selector(args).merge(tag_name: /^(th|td)$/))
      cells.locator_class = ChildCellLocator

      cells
    end

  end # CellContainer
end # Watir

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
watir-webdriver-0.9.1 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.9.0 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.8.0 lib/watir-webdriver/cell_container.rb