module Druid module Elements class TextField < Element def self.finders super + [:text, :title, :label] end # # Set the value of the TextField # def value=(new_value) element.set(new_value) end def append text element.send_keys text end end Druid::Elements.type_to_class[:text] = Druid::Elements::TextField Druid::Elements.type_to_class[:password] = Druid::Elements::TextField end end