Sha256: 19eb000f7882b64b147b060aedee0512bdd28f124bd7bfbf1229000e7a359645

Contents?: true

Size: 716 Bytes

Versions: 3

Compression:

Stored size: 716 Bytes

Contents

module Symbiont
  module Platforms

    require 'watir-webdriver'

    # This module determines what execution platform Symbiont will use.
    # The decision is based on the browser that has been established for
    # the execution profile.
    #
    # @param [Object] browser the browser to establish the platform for
    # @returns [Object] a platform object to execute tests against
    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

  end
end

require_relative 'platform_watir'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
symbiont-0.2.1 lib/symbiont/platforms.rb
symbiont-0.2.0 lib/symbiont/platforms.rb
symbiont-0.1.9 lib/symbiont/platforms.rb