module Symbiont module WebObjects class TextField < WebObject # Get the value of a text field. def value @web_object.value end # Set the value of a text field. def value=(value) @web_object.set value end # Append text to a text field. def append(text) @web_object.send_keys text 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