Sha256: 50929dc27691db582ea11661093f5f8e2e084c83798bb06d37703c527bff2b63

Contents?: true

Size: 488 Bytes

Versions: 6

Compression:

Stored size: 488 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
druid-ts-1.2.0 lib/druid/elements/text_field.rb
druid-ts-1.1.8 lib/druid/elements/text_field.rb
druid-ts-1.1.7 lib/druid/elements/text_field.rb
druid-ts-1.1.6 lib/druid/elements/text_field.rb
druid-ts-1.1.5 lib/druid/elements/text_field.rb
druid-ts-1.1.4 lib/druid/elements/text_field.rb