Sha256: 54748d06a03fad5c141a2a70e4720c4dadb5c5ae8b0f6df0b9412621c1e967cb

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

module Symbiont
  module WebObjects

    class TextArea < WebObject
      def initialize(web_object)
        @web_object = web_object
      end

      def value=(value)
        web_object.set value
      end

      def clear
        web_object.wd.clear
      end

      def self.usable_selectors
        super + [:title, :value, :text, :label]
      end

    end # class: TextArea

    ::Symbiont::WebObjects.class_for_tag[:textarea] = ::Symbiont::WebObjects::TextArea

  end # module: WebObjects
end # module: Symbiont

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
symbiont-0.2.1 lib/symbiont/web_objects/text_area.rb
symbiont-0.2.0 lib/symbiont/web_objects/text_area.rb