Module: Symbiont::Platforms

Included in:
Symbiont
Defined in:
lib/symbiont/platforms.rb,
lib/symbiont/platform_watir.rb,
lib/symbiont/platform_watir/platform_object.rb

Defined Under Namespace

Modules: WatirWebDriver

Instance Method Summary collapse

Instance Method Details

#get_platform_for(browser) ⇒ Object

This module determines what execution platform Symbiont will use. The decision is based on the browser that has been established for the execution profile.

Parameters:

  • browser (Object)

    the browser to establish the platform for



12
13
14
15
16
17
18
# File 'lib/symbiont/platforms.rb', line 12

def get_platform_for(browser)
  if browser.is_a?(Watir::Browser)
    return @platform = Symbiont::Platforms::WatirWebDriver::PlatformObject.new(@browser)
  else
    raise "Unable to create a platform object for #{browser}"
  end
end