Sha256: 59f8347fc5d7dd8e947d72e466b1c20e046ac3e398befa54377751ec2d352448

Contents?: true

Size: 686 Bytes

Versions: 23

Compression:

Stored size: 686 Bytes

Contents

module Watir
  module UserEditable

    #
    # Clear the element, the type in the given value.
    #
    # @param [String, Symbol] *args
    #

    def set(*args)
      element_call(:wait_for_writable) do
        @element.clear
        @element.send_keys(*args)
      end
    end
    alias_method :value=, :set

    #
    # Appends the given value to the text in the text field.
    #
    # @param [String, Symbol] *args
    #

    def append(*args)
      send_keys(*args)
    end
    alias_method :<<, :append

    #
    # Clears the text field.
    #

    def clear
      element_call(:wait_for_writable) do
        @element.clear
      end
    end

  end # UserEditable
end # Watir

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
watir-6.7.3 lib/watir/user_editable.rb
watir-6.7.2 lib/watir/user_editable.rb
watir-6.7.1 lib/watir/user_editable.rb
watir-6.7.0 lib/watir/user_editable.rb
watir-6.6.3 lib/watir/user_editable.rb
watir-6.6.2 lib/watir/user_editable.rb
watir-6.6.1 lib/watir/user_editable.rb
watir-6.6.0 lib/watir/user_editable.rb
watir-6.5.0 lib/watir/user_editable.rb
watir-6.4.3 lib/watir/user_editable.rb
watir-6.4.2 lib/watir/user_editable.rb
watir-6.4.1 lib/watir/user_editable.rb
watir-6.4.0 lib/watir/user_editable.rb
watir-6.4.0.rc2 lib/watir/user_editable.rb
watir-6.4.0.rc1 lib/watir/user_editable.rb
watir-6.3.0 lib/watir/user_editable.rb
watir-6.2.1 lib/watir/user_editable.rb
watir-6.2.0 lib/watir/user_editable.rb
watir-6.1.0 lib/watir/user_editable.rb
watir-6.0.3 lib/watir/user_editable.rb