I’m automating a desktop application and sometimes random pop-up dialogs appear that are not consistent. What is the best practice for handling unexpected pop-ups in UiPath without hardcoding delays?
Hi @shashank_tiwari,
Best practice is to use a Parallel activity where one branch runs your main automation and the other branch continuously checks for the pop-up using Element Exists / Check App State and closes it when it appears, without relying on hardcoded delays.
Thanks & Happy Automation
You can try this approach
Use UI Trigger (Monitor Events)
1-Configure it to detect common pop-up titles/text (Error, Warning, OK).
2-Inside the trigger, just click OK / Close.
3-It runs in parallel, so no hardcoded delays needed.
I hope it will resolve your issue
Cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.