Hey I’m following the introduction to UIAutomation for UIPath Studio.
I’m having an issue, the screen recorder doesn’t seem to pick up the individual “File”, “Edit”, “View” buttons on notepad so I have to manually detect them.
I have two clicks, click1 for selecting the “File” button
click 2 for selecting the “Save as” button
Once I click the file button the dropdown option opens
then when it moves to click2 the dropdown closes the file tab almost instantly, to keep the dropdown open I have to have my click2 input mode as a Window Messages.
But it doesn’t seem to be able to detect the “Save as” button, it just opens the file dropdown menu and gets stuck, if I manually click save as it continues with the rest of the saving process perfectly fine.
I’ve tried switching to the click2 to hover select but that doesn’t work either.
I’ve tried image select to manually detect but that doesn’t work.
I’ve searched the web and all the suggestions say that 2 clicks should work.
Others say to just use shortcuts, which I understand is a work around, but clicking file and save as is a pretty basic function that this should be able to do, and I’m trying to do that without using keyboard shortcuts.
Upon checking I found that the selector for the ‘Save as’ option from the ‘File’ menu dropdown can be easily captured.
Selector:
You can apply the keyboard key ‘F2’ or ‘Fn + F2’ for the selection to wait or give a delay of 3 seconds to point to the element.
But, rather than doing this you can multiple options to achieve the same in a much better way.
As you mentioned, the shortcut or hotkey using will be good, or else you can use the ‘Write Text File’ activity, which will write/save the file without any UI interactions.
Hey thanks for the reply.
I’ve been using F2 to pause to open the file drop down to be able to select the Save as button.
Which is why I’ve been so confused as to why UIPath can’t pick up a simple button, I’m doing it exactly how I’ve seen many people say to do it.
if I manually press save as, it continues fine without error, it’s just pressing save as.
I suspect, it might be because windows 11 the notepad app layout has changed, and the tutorial used the old notepad, and maybe UIPath can’t pick up the new layout properly.
Which element did you choose in VerifyExecution? It should be same element in the next TypeInto Activity. (Because it checks if next element appears or not)
Still failed, behaviour hasn’t changed.
Notepad opens the File button and the mouse just sits there and doesn’t move from there, and it just waits until the robot fails