Sha256: 55f2f4f222879a15001beda9fe2ba6c2e8a7b5082449d733cbdc7bc262f946c5

Contents?: true

Size: 594 Bytes

Versions: 18

Compression:

Stored size: 594 Bytes

Contents

module PageObject
  module Platforms
    module WatirWebDriver

      module Table

        #
        # Return the PageObject::Elements::TableRow for the index provided.  Index
        # is zero based.
        #
        # @return [PageObject::Elements::TableRow]
        #
        def [](idx)
          Object::PageObject::Elements::TableRow.new(@element[idx], :platform => :watir_webdriver)
        end

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

      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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