lib/page-object/elements/text_area.rb in page-object-2.0.0 vs lib/page-object/elements/text_area.rb in page-object-2.1

- old
+ new

@@ -1,19 +1,19 @@ module PageObject module Elements class TextArea < Element - def initialize(element, platform) - @element = element - include_platform_for platform + # + # Set the value of the TextArea + # + def value=(new_value) + element.set(new_value) end - def self.watir_finders - super + [:label] - end + protected - def self.selenium_finders + def self.watir_finders super + [:label] end end