Skip to end of metadata
Go to start of metadata

Description

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.

 Parameters

Param
Param Type
Mandatory
Description
to TestObjectRequiredRepresent a web element.
textStringRequiredThe encrypted text.
flowControlFailureHandlingOptionalSpecify failure handling schema to determine whether the execution should be allowed to continue or stop.

Example

Set the encrypted text to txt_Password of a login form.

 

'Open browser and navigate to AUT'
WebUI.openBrowser('http://demoaut.katalon.com/profile.php#login')

'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'
WebUI.click(findTestObject('Page_Login/btn_Login'))

'Close browser'
WebUI.closeBrowser()



 

 

  • No labels