Sha256: d0a214706367a7295a64eb9140efaed2a0628e6f730fcbb9506264b78588378a

Contents?: true

Size: 587 Bytes

Versions: 11

Compression:

Stored size: 587 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

11 entries across 11 versions & 1 rubygems

Version Path
watir-webdriver-0.7.0 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.6.11 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.6.10 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.6.9 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.6.8 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.6.7 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.6.6 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.6.5 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.6.4 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.6.3 lib/watir-webdriver/cell_container.rb
watir-webdriver-0.6.2 lib/watir-webdriver/cell_container.rb