Skip to main content

[WebUI] Set Encrypted Text


Set encrypted text into an input field. It also clears the previous value of the input field. To encrypt raw text, go to Help > Encrypt Text.

Manual mode

The pop-up dialog has been shown when calling keyword "Set Encrypted Text". Input raw text and select insert.

Script Mode

Go to Help > Encrypt Text, input raw text to encrypt. Next, copy and paste encrypted text into the test scripts.


ParamParam TypeMandatoryDescription
toTestObjectRequiredRepresent a web element.
textStringRequiredThe encrypted text.
flowControlFailureHandlingOptionalSpecify failure handling schema to determine whether the execution should be allowed to continue or stop.


Set the encrypted text to txt_Password of a login form.

'Open browser and navigate to AUT'

'Input username'
WebUI.setText(findTestObject('Page_Login/txt_UserName'), 'John Doe')

'Input password'
WebUI.setEncryptedText(findTestObject('Page_Login/txt_Password'), 'g3/DOGG74jC3Flrr3yH+3D/yKbOqqUNM')

'Click on "Login" button''Page_Login/btn_Login'))

'Close browser'