lib/page-object/elements/check_box.rb in page-object-0.2.5 vs lib/page-object/elements/check_box.rb in page-object-0.3.0
- old
+ new
@@ -9,17 +9,17 @@
protected
def include_platform_for platform
super
- if platform[:platform] == :watir
- require 'page-object/platforms/watir/check_box'
- self.class.send :include, PageObject::Platforms::Watir::CheckBox
- elsif platform[:platform] == :selenium
- require 'page-object/platforms/selenium/check_box'
- self.class.send :include, PageObject::Platforms::Selenium::CheckBox
+ if platform[:platform] == :watir_webdriver
+ require 'page-object/platforms/watir_webdriver/check_box'
+ self.class.send :include, PageObject::Platforms::WatirWebDriver::CheckBox
+ elsif platform[:platform] == :selenium_webdriver
+ require 'page-object/platforms/selenium_webdriver/check_box'
+ self.class.send :include, PageObject::Platforms::SeleniumWebDriver::CheckBox
else
- raise ArgumentError, "expect platform to be :watir or :selenium"
+ raise ArgumentError, "expect platform to be :watir_webdriver or :selenium_webdriver"
end
end
end
end
end
\ No newline at end of file