Skip to main content
Version: v6.5.0

Enter in the target after obtaining credentials

Command Description

Obtain the value of the specified credentials from the "Data Assets - credentials" module of the Commander, and then enter it into the specified target

Command Prototype

CommanderCredential.InputPwd(objElement,credName,fieldType)

Command parameter

parametermandatorytypedefault valueInstructions
objElementTruedecorator@ ui""The UI elements selected by the mouse contains information such as window and element, or the existing UI elements is selected from the UI Library
credNameTruedynamicEnum""Select from the credentials names created by the user in the "Data Assets - credentials" module of the Commander
fieldTypeTrueenum"username"The credentials contains the "User Name" and "Password" fields, and the "Password" field is an encrypted value

Return result

Run instance

/*********************************Input Credential into Target Field*********************************
Command Prototype:
CommanderCredential.InputPwd(objElement,credName,fieldType)
Input Parameters:
objElement -- Target. Note: The interface element selected via mouse, containing window, element information, etc., or select an existing interface element from the interface library.
credName -- Credential name. Note: Select from the credential names created by the user in the "Data Assets - Credentials" module of the Robot Commander.
fieldType -- Credential field. Note: The credential contains "Username" and "Password" fields, and the "Password" field is encrypted.
Output Parameters:
None
Notes:
None
********************************************************************************/
CommanderCredential.InputPwd(@ui"","","username")