module Symbiont module WebObjects class TextField < WebObject def initialize(web_object) @web_object = web_object end def value web_object.value end def value=(value) web_object.set value end def append(text) web_object.send_keys text end def self.usable_selectors super + [:title, :value, :text, :label] end end # class: TextField ::Symbiont::WebObjects.class_for_type[:text] = ::Symbiont::WebObjects::TextField ::Symbiont::WebObjects.class_for_type[:password] = ::Symbiont::WebObjects::TextField end # module: WebObjects end # module: Symbiont