Sha256: cd790f507545d65368c98319848e894e47a5d4f96f6aa92cb3c1e0ef2fb0271d
Contents?: true
Size: 937 Bytes
Versions: 2
Compression:
Stored size: 937 Bytes
Contents
module Fluent module Platforms @drivers = {} def self.register(driver, platform) @drivers[driver] = platform end def self.list @drivers end # This module determines what execution platform Fluent will use. The # decision is based on the browser that has been established for the # execution profile. # # @param browser [Object] the browser to establish the platform for # @return [Object] a platform object to execute tests against def get_platform_for(browser) Fluent::Platforms.list.each_value do |driver| return driver.create_platform_object_for(browser) if driver.works_with?(browser) end msg = "Unable to create a platform object for #{browser}." raise Fluent::Errors::UnableToCreatePlatform, msg end end end require 'fluent/platform_watir' require 'fluent/platform_selenium'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluent-0.3.0 | lib/fluent/platforms.rb |
fluent-0.2.0 | lib/fluent/platforms.rb |