Can someone please help with the "Set search context" on Windows Automation Tutorial? The part of the workflow that Switch to Notepad sometimes works but does not work most of the time with this error message: "The element could not be found". Below are the screenshots of the configuration set up:
Thank you in advance
Discussion posts and replies are publicly visible
On your VM, is the window title of notepad 'Untitled - Notepad' ? If it has changed, then you'll need to update the name you are searching for. If you follow our docs, you can download windows accessibility insights to find other selectors such as the AutomationID
Thanks, Danny for the response. The name remains 'Untitled - Notepad'. I tried to get another selector using windows accessibility insights, but could not find one. If you could put me wise on how to get other selectors, that would be appreciated.
If you click the gear icon inline with Properties you can add other selectors
Hi Danny, thanks once again. I tried your suggestion but no solution still. Please have a look at the following screenshots:
Are you first switching from using another application? If so, what is that application?
Yes. The other application is calculator
Still waiting for anyone that can help, anyone that understands Windows Automation clearly and can help with the issues described here. Thank you in advance.
There's another method called 'Wait for window title' which can help the robot find the window title and make it the active window. You can try using that method first before the set search context method
I found initially the context was Untitled - Notepad and after a value was pasted the context was *Untitled - Notepad. If the issue is in the Compute Second Sum, Get First workflow section, try changing the Switch to Notepad action expression to the following: "*"&pv!npContext