class GxtWidgets::GxtGridRow

Attributes

container[R]

Public Class Methods

new(element, container, platform) click to toggle source
# File lib/gxt-widgets/gxt_grid_row.rb, line 6
def initialize(element, container,  platform)
  @element = element
  @container = container
  include_platform_for platform
end

Protected Instance Methods

include_platform_for(platform) click to toggle source
Calls superclass method
# File lib/gxt-widgets/gxt_grid_row.rb, line 18
def include_platform_for platform
  super
  if platform[:platform] == :watir_webdriver
    require 'gxt-widgets/platforms/watir_webdriver/gxt_grid_row'
    self.class.send :include, GxtWidgets::Platforms::WatirWebDriver::GxtGridRow
  elsif platform[:platform] == :selenium_webdriver
    require 'gxt-widgets/platforms/selenium_webdriver/gxt_grid_row'
    self.class.send :include, GxtWidgets::Platforms::SeleniumWebDriver::GxtGridRow
  else
    raise ArgumentError, "expect platform to be :watir_webdriver or :selenium_webdriver"
  end
end
initialize_cell(row_element, platform) click to toggle source
# File lib/gxt-widgets/gxt_grid_row.rb, line 14
def initialize_cell(row_element, platform)
  PageObject::Elements::TableCell.new(row_element, platform)
end