lib/page-object/elements/text_area.rb in page-object-0.8.6 vs lib/page-object/elements/text_area.rb in page-object-0.8.6.1

- old
+ new

@@ -6,10 +6,18 @@ def initialize(element, platform) @element = element include_platform_for platform end + def self.watir_finders + super + [:label] + end + + def self.selenium_finders + super + [:label] + end + protected def include_platform_for platform super if platform[:platform] == :watir_webdriver @@ -23,8 +31,8 @@ end end end ::PageObject::Elements.tag_to_class[:textarea] = ::PageObject::Elements::TextArea - + end end