If the input password field is complex(eg-Abr!@455) how to automate in uipath

Steps I have Done

  1. In library created a sequence using Open browser → Type into (to capture userid field) → Type Secure text ‘Input’ (to capture password)
  2. when i input complex password i am hitting error -->value of type ‘string’ cannot be converted to ‘system.security.securestring’

the error message

Hi, this error is happening because you are passing string type “BCNtest!2345” to a property that expects secure string type.

I guess that in the final design you will not pass the password like in the screenshots. You will have to get the password from somewhere (the user, Orchestrator asset, Windows credential manager). In these cases, you get the password already as secure string and this error will not happen.

E.g. if you would use the Request Credential activity on the screenshot below, you would pass the OutSecStringPass variable as the input password for your activity.

@NIMMY_S_MATHEW You can use an assign activity created a variable (Pass) of type Secure string
Pass = New system.Net.NetworkCredential(String.Empty, “Your Password”).SecurePassword
In type into activity pass the variable “Pass” which you created

Hi @NIMMY_S_MATHEW

Welcome to UiPath community!

You have defined the argument USERPASSWORD as secure string and you are trying to pass the value of type string to the library. Hence, it is showing that error. Make sure you pass the value of type Secure String. Then, it should work