Sha256: 40fc5753fd87ae2eb017fe4703d05e150ce28c551bcb00a70b79d17235768c9f

Contents?: true

Size: 643 Bytes

Versions: 12

Compression:

Stored size: 643 Bytes

Contents

module Watir
  module UserEditable

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

    def set(*args)
      clear
      element_call { @element.send_keys(*args) }
    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
      assert_exists
      assert_writable
      element_call { @element.clear }
    end

  end # UserEditable
end # Watir

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
watir-webdriver-0.9.9 lib/watir-webdriver/user_editable.rb
watir-6.0.0.beta5 lib/watir/user_editable.rb
watir-6.0.0.beta4 lib/watir/user_editable.rb
watir-6.0.0.beta3 lib/watir/user_editable.rb
watir-6.0.0.beta2 lib/watir/user_editable.rb
watir-6.0.0.beta1 lib/watir/user_editable.rb
watir-webdriver-0.9.3 lib/watir-webdriver/user_editable.rb
watir-webdriver-0.9.2 lib/watir-webdriver/user_editable.rb
watir-webdriver-0.9.1 lib/watir-webdriver/user_editable.rb
watir-webdriver-0.9.0 lib/watir-webdriver/user_editable.rb
watir-webdriver-0.8.0 lib/watir-webdriver/user_editable.rb
watir-webdriver-0.7.0 lib/watir-webdriver/user_editable.rb