lib/symbiont/platform_watir.rb in symbiont-0.1.7 vs lib/symbiont/platform_watir.rb in symbiont-0.1.8

- old
+ new

@@ -1,9 +1,18 @@ module Symbiont module Platforms module WatirWebDriver - require_relative 'platform_watir/platform_object' + def self.create_platform_object_for(browser) + require_relative 'platform_watir/platform_object' + return WatirWebDriver::PlatformObject.new(browser) + end - end # module: WatirWebDriver - end # module: Platforms -end # module: Symbiont + def self.works_with(browser) + browser.is_a?(::Watir::Browser) + end + + end + end +end + +Symbiont::Platforms.register(:watir_webdriver, Symbiont::Platforms::WatirWebDriver) \ No newline at end of file