I am in a position where I need to take a screenshot of specific coordinates of the screen and save that screenshot to a particular folder on my machine. Since the default Power Automate functionality only allows me to take screenshots of the entire screen or foreground window, I have turned to trying to automate the Snipping Tool to accomplish this goal.
I have created a simple automation to do this, but I am having UI selector errors on the "Save As" page.
Here are screenshots of what I have built for reference:
Line 53 tries to click the top of the address bar to manually type in the location of the folder in which I would like to save the file. The workflow fails on line 53 every time, prompting me that it cannot find the UI element. I have edited the UI selector (both window and actual menu item) to try to strip out as many unnecessary indicators as I could, leaving only the window name "Save As" and the name "Address".
*The automation seems to fail no matter what I try to click on within the Snipping Tool. Even the "Save" button doesn't work, so I needed to resort to Ctrl+S to open the "Save as" window
**It's worth noting that when the bot fails to capture the UI element.... if I simply click on the failed location and click "Run from here", the bot does find the UI object it is looking for and continues to function as it should. It always fails when running the bot from the beginning.