vendor/gems/gems/firewatir-1.2.1/htmlelements.rb
#
# Description:
#   Clears the contents of the text field.
#   Raises ObjectDisabledException if text field is disabled.
#   Raises ObjectReadOnlyException if text field is read only.
#

Clears the contents of the text field.
Raises ObjectDisabledException if text field is disabled.
Raises ObjectReadOnlyException if text field is read only.
Clears the contents of the text field . Raises ObjectDisabledException if text field is disabled . Raises ObjectReadOnlyException if text field is read only .
def clear
        assert_exists
        assert_enabled
        assert_not_readonly
        highlight(:set)
        @o.scrollIntoView
        @o.focus
        @o.select()
        @o.fireEvent("onSelect")
        @o.value = ""
        @o.fireEvent("onKeyPress")
        @o.fireEvent("onChange")
        @container.wait()
        highlight(:clear)
    end
def clear assert_exists assert_enabled assert_not_readonly highlight ( :set ) @o . scrollIntoView @o . focus @o . select ( ) @o . fireEvent ( "onSelect" ) @o . value = "" @o . fireEvent ( "onKeyPress" ) @o . fireEvent ( "onChange" ) @container . wait ( ) highlight ( :clear ) end
Description:
Clears the contents of the text field.
Description : Clears the contents of the text field .