lib/page-object/elements/text_area.rb in page-object-0.2.5 vs lib/page-object/elements/text_area.rb in page-object-0.3.0
- old
+ new
@@ -25,17 +25,17 @@
super.merge({:tag_name => :css})
end
def include_platform_for platform
super
- if platform[:platform] == :watir
- require 'page-object/platforms/watir/text_area'
- self.class.send :include, PageObject::Platforms::Watir::TextArea
- elsif platform[:platform] == :selenium
- require 'page-object/platforms/selenium/text_area'
- self.class.send :include, PageObject::Platforms::Selenium::TextArea
+ if platform[:platform] == :watir_webdriver
+ require 'page-object/platforms/watir_webdriver/text_area'
+ self.class.send :include, PageObject::Platforms::WatirWebDriver::TextArea
+ elsif platform[:platform] == :selenium_webdriver
+ require 'page-object/platforms/selenium_webdriver/text_area'
+ self.class.send :include, PageObject::Platforms::SeleniumWebDriver::TextArea
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