Sha256: fe3e978cecb629f4f2cd296e96296dcb146dc979d34effaff68914ffebd61f74

Contents?: true

Size: 720 Bytes

Versions: 3

Compression:

Stored size: 720 Bytes

Contents

module GxtWidgets
  module Platforms
    module WatirWebDriver
      module GxtGridHeaderRow
        include GxtWidgets::Platforms::WatirWebDriver::GxtGridRow

        #
        # Return the PageObject::Elements::TableCell for the index provided.  Index
        # is zero based.  If the index provided is a String then it
        # will be matched with the text from the columns in the first row.
        # The text can be a substring of the full column text.
        #
        def [](idx)
          idx = find_index_by_title(idx) if idx.kind_of?(String)
          return nil unless idx && columns >= idx + 1
          initialize_cell(element[idx], :platform => :watir_webdriver)
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gxt-widgets-0.2.1 lib/gxt-widgets/platforms/watir_webdriver/gxt_grid_header_row.rb
gxt-widgets-0.2 lib/gxt-widgets/platforms/watir_webdriver/gxt_grid_header_row.rb
gxt-widgets-0.1 lib/gxt-widgets/platforms/watir_webdriver/gxt_grid_header_row.rb