We will be focusing on Power Automate Desktop (PAD) only. Let’s see the scenario first. I have a simple web form as shown below.
Filling up the form and clicking on the Download Report button can be easily achieved. Let me fill up the form and show you the pop up alert I received.
I researched a lot to handle this using the UI element but could not succeed. I was able to get the text from the alert pop up and do the operation accordingly but was unsuccessful in clicking the OK button on the alert.
Then I found a solution with the small key. Yes, we can dismiss this alert using the
Escape key. Finally, I sent a key in my RPA flow and the alert was dismissed. I tested this in Microsoft Edge. Hope, Chrome also dismisses the alert using the Escape key.
Here is the step I followed using the Power Automate Desktop by adding a simple action. The 7th step clicks on the download button. 8th step extracts the alert content and save to a variable. 9th step dismisses/closes the alert.
Thank you All!!! Hope you find this useful.
If you liked our content and it was helpful, you can buy us a coffee or a pizza. Thank you so much.