Sha256: e7253f735a6a10e4c13e6e4834a0317019e01cffeffa5854cba1f7ae48adaded

Contents?: true

Size: 515 Bytes

Versions: 5

Compression:

Stored size: 515 Bytes

Contents

module PageObject
  module Platforms
    module Watir
      module TableRow

        #
        # Return the PageObject::Elements::TableCell for the index provided.  Index
        # is zero based.
        #
        def [](idx)
          PageObject::Elements::TableCell.new(element[idx], :platform => :watir)
        end

        #
        # Returns the number of columns in the table.
        #
        def columns
          element.wd.find_elements(:xpath, child_xpath).size
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
page-object-0.2.5 lib/page-object/platforms/watir/table_row.rb
page-object-0.2.4 lib/page-object/platforms/watir/table_row.rb
page-object-0.2.3 lib/page-object/platforms/watir/table_row.rb
page-object-0.2.2 lib/page-object/platforms/watir/table_row.rb
page-object-0.2.1 lib/page-object/platforms/watir/table_row.rb