Sha256: 595108872d58dc96b2aaa6b82cdf7fd71095395afb927ef49a8d9ce8eeaa83db

Contents?: true

Size: 391 Bytes

Versions: 3

Compression:

Stored size: 391 Bytes

Contents

module PageObject
  module Platforms
    module SeleniumTableRow
      
      #
      # Return the PageObject::Elements::TableCell for the index provided.  Index
      # is zero based.
      #
      def [](idx)
        element = @element.find_element(:xpath, "./th|td[#{idx+1}]")
        PageObject::Elements::TableCell.new(element, :platform => :selenium)
      end
      
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
page-object-0.0.4 lib/page-object/platforms/selenium_table_row.rb
page-object-0.0.3 lib/page-object/platforms/selenium_table_row.rb
page-object-0.0.2 lib/page-object/platforms/selenium_table_row.rb