Sha256: 0f3b0d2baf989f7ca6f76dc1b8e85fed16150c86472d294669093f67d7cd44f0

Contents?: true

Size: 542 Bytes

Versions: 21

Compression:

Stored size: 542 Bytes

Contents

module PageObject
  module Platforms
    module WatirWebDriver
      module TableRow

        #
        # Return the PageObject::Elements::TableCell for the index provided.  Index
        # is zero based.
        #
        def [](idx)
          Object::PageObject::Elements::TableCell.new(element[idx], :platform => :watir_webdriver)
        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

21 entries across 21 versions & 1 rubygems

Version Path
page-object-0.6.6 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.6.5 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.6.4 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.6.3 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.6.2 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.6.1 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.6 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.5.5 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.5.4 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.5.3 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.5.2 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.5.1 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.5.0 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.4.4 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.4.3 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.4.2 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.4.1 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.4.0 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.3.2 lib/page-object/platforms/watir_webdriver/table_row.rb
page-object-0.3.1 lib/page-object/platforms/watir_webdriver/table_row.rb