lib/fluent/web_elements/text_field.rb in fluent-0.1.0 vs lib/fluent/web_elements/text_field.rb in fluent-0.2.0
- old
+ new
@@ -4,12 +4,20 @@
def initialize(web_element, platform)
@web_element = web_element
include_platform_specifics_for platform
end
+
+ def append(text)
+ web_element.send_keys(text)
+ end
def include_platform_specifics_for(platform)
super
+ if platform[:platform] == :watir_webdriver
+ require 'fluent/platform_watir/platform_web_elements/text_field'
+ self.class.send :include, Fluent::Platforms::WatirWebDriver::TextField
+ end
end
end
end
end
\ No newline at end of file