Sha256: 26cd4de162427e343f69628a6a94773e6cef808cfc898c0c9e5f8354daf8deab

Contents?: true

Size: 662 Bytes

Versions: 5

Compression:

Stored size: 662 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
symbiont-0.1.7 lib/symbiont/web_objects/text_field.rb
symbiont-0.1.6 lib/symbiont/web_objects/text_field.rb
symbiont-0.1.5 lib/symbiont/web_objects/text_field.rb
symbiont-0.1.4 lib/symbiont/web_objects/text_field.rb
symbiont-0.1.3 lib/symbiont/web_objects/text_field.rb