I have a requirement for a production automation built using UiPath Studio only (without using Maestro, AI Agents, or any external AI services).
During process execution, there may be unexpected or newly appearing popups that were not present during development. My objective is for the bot to detect and handle these popups automatically without interrupting the process and without throwing an exception, whenever it is safe to do so.
So far, I have successfully implemented the following:
Detect unexpected dialog windows or popups dynamically.
Identify common buttons (such as OK, Cancel, Close, Retry, yes, No) using semantic selectors, without hardcoding each popup.
Perform predefined safe actions based on the detected buttons.
Capture screenshots and log popup details for auditing and troubleshooting.
However, my challenge is with completely new or unexpected popups that do not contain any of these common buttons (for example, they may have custom button names or an unfamiliar UI).
My questions are:
Is it possible to build a truly generic popup handling framework in UiPath Studio only that can handle such completely unknown popups?
Is there any Studio feature or UI Automation capability that can dynamically understand or identify the appropriate action for an unknown popup without relying on predefined button names or business rules?
If not, what is the recommended production approach for handling these kinds of unexpected popups while allowing the automation to continue safely?
I’m specifically looking for a solution without using Maestro, AI Agents, or any external AI services.
You can use Close Popup activity inside a Use Application/Browser activity.
Also, if you have AI Units available, you can also enable “AI-Enhanced mode”. It leverages AI to close the pop-up if the toggle button is set to “On”. Each close action via AI consumes one AI unit. The default option is “Off”.
You can use close pop-up activity inside check app state(if you know that pop-up will occur but don’t know when) if target apprear section or else you can use element exists then use if condition.
What if we don’t know the popup’s close button, or the popup doesn’t contain any Close, OK, Cancel, Yes, or No buttons? Will the Close Popup activity still be able to close the popup?
What if we don’t know the popup’s close button, or the popup doesn’t contain any Close, OK, Cancel, Yes, or No buttons? Will the Close Popup activity still be able to close the popup?
No, the Close Popup activity will fail if it relies entirely on its default behavior.
But there is one option:
(Activities - Close Popup)
AI-Enhanced mode - Leverages AI to close the pop-up if the toggle button is set to On. Each close action via AI consumes one AI unit. The default option is Off.
Maestro has no idea whats going on in your RPA, the best it does is delegate to a Studio bot, there is no place for it helping here even if you had the choice.
Same for AI Agents, not really any meaningful way to integrate them.
I guess if you could detect the popup you could ask the AI agent for advice on what button to press on the popup, but its not that useful
Just wanting to challenge the perception that Maestro can somehow handle this if that was your impression. This is still an RPA problem, unless you get a coding agent involved I think the suggestions above make the most sense.