Home > Language Reference > Web Functions > WriteHTMLEncrypted

WriteHTMLEncrypted

The WriteHTMLEncrypted function writes encrypted text in a text field web-form.

Usage

Used to fill automatically a password field on a Web page. Recording mode generates automatically the WriteHTMLEncrypted statement if you check Encrypt web passwords checkbox in the Recording options dialog box (select Configure/Recording menu option). Or select Insert/Encrypted string menu option to generate the encrypted text from the original text.

VideoWriteHTML writes some text into a field within a web form. WriteHTMLEncrypted and WriteHTMLPaste are variations and the video explains the use of those three WinTask functions.

Syntax

ret=WriteHTMLEncrypted(<html_descriptor> , <encrypted_text>)

Parameters

<html_descriptor>, string, HTML descriptor of the text field. Use Recording mode to generate the WriteHTML syntax and then change the string into an encrypted string.

<encrypted_text>, string, encrypted text to write in the form field.

Return value

Ret, optional numeric return value. If the function succeeds writing within 30 seconds (this default value can be changed using #ActionTimeout), the function returns 0. If the function fails, the return value is a nonzero negative value (see Web Functions Error Codes).

Remarks

If at replay, you see that the text is not typed correctly, slow down the field filling using #HTMLPosRetry.

See also

Encrypt
WriteHTMLPaste
WriteHTML

Example

UsePage("Barclays")
WriteHTML("INPUT TEXT[NAME= 'nocompte']", "46XT38000T")
WriteHTMLEncrypted("INPUT PASSWORD[NAME= 'passe']", "Hbh0SSJXXjA2vbB1wD2")
ClickHTMLElement("INPUT IMAGE[NAME= 'img3']")