class GxtWidgets::RowContainer

Protected Instance Methods

child_xpath() click to toggle source
# File lib/gxt-widgets/row_container.rb, line 7
def child_xpath
  ".//descendant::tr"
end
include_platform_for(platform) click to toggle source
Calls superclass method
# File lib/gxt-widgets/row_container.rb, line 15
def include_platform_for platform
  super
  if platform[:platform] == :watir_webdriver
    require 'gxt-widgets/platforms/watir_webdriver/row_container'
    self.class.send :include, GxtWidgets::Platforms::WatirWebDriver::RowContainer
  elsif platform[:platform] == :selenium_webdriver
    require 'gxt-widgets/platforms/selenium_webdriver/row_container'
    self.class.send :include, GxtWidgets::Platforms::SeleniumWebDriver::RowContainer
  else
    raise ArgumentError, "expect platform to be :watir_webdriver or :selenium_webdriver"
  end
end
initialize_row(row_element, platform) click to toggle source
# File lib/gxt-widgets/row_container.rb, line 11
def initialize_row(row_element, platform)
  Object::GxtWidgets::GxtGridRow.new(row_element, self, platform)
end