Hello everyone.
I have created a UIPath process. One of the activities include Type Into.
So I have this app where I have to type the password. The problem is that sometimes it writes the password and sometimes not.
Did anyone face this problem before, and do you have any idea how to solve it?
Well I tried all of your suggestions but nothing worked.
I am attaching the process so maybe it will be more easy for you to understand what I am trying to do.
Hi
Did we try with normal type into activity where pass the secure string like this
New System.Net.NetworkCredential(string.Empty, var_securepassword).Password.ToString
Ensure that you have enabled simulate type property in type into activity
Here in your sequence after get credential directly use TYPE INTO activity with the above expression
It will work for sure
If you want to validate whether the asset mentioned in GET CREDENTIAL activity is the right one then use a writeline activity next to get credential and mention this expression and see the output panel for some value
New System.Net.NetworkCredential(string.Empty, var_securepassword).Password.ToString
By that you can see whether we are getting the value to be typed
Would you be able to confirm if the Get Credential activity is successfully getting executed and the right password string is being retrieved ? You shall ensure this by including a simple message box before the find element activity.
Letâs do one thing
Instead of type into letâs go for copy paste method
Like this
Pass the same expression we used in type into activity now to SET TO CLIPBOARD activity
Then use a normal CLICK activity to click on that field where we need to type
Or use SEND HOT KEY ACTIVITY with key as tab without any element indicated that is with no selector
Use n number of such send hot key activity with tab as key until it reaches to the field where we want to type
We can get that count by our keyboard tab key
Then again finally use a SEND HOT KEY activity with key as ctrl+v without any element indicated so that it will paste the value from clipboard
@F_Owl Alright, could you please help to share the selector which you are using in the Type Into Activity ? Also, if possible please share the screenshot by inspecting the element with Ui Explorer.
I tried and the first time it was executed okay. The second time it didnât recognize the click activity.
Is there any possibility that this has something to do with the application that I am using?
Since your code worked for the first time? I would assume it works each time when you load your application window for the first time and it fails.
Also, the error is for selector of Type Into activity which means your find element works alright (unless you have set continue on error true for find element activity).
I would suggest checking the selector of the password field. It might be different than the one you are using at the moment. It can happen since window status changes.
The error message is not complete and is trimmed. you should have selector attributes after each[n] entry. Have a closer look at the following part of your error message. [1]
[2]
Search failed at selector tag: [1]
The closest matches found are: [40%]
The âtype intoâ is faulting because the selector for the top-level selector tag failed. Most probably that is your title, main container window.
If you still have trouble try using attach window if itâs a desktop application or attach browser in case of web application just before type secure text activity and revalidate selector for both container and type activity.