Hello, how can I handle a window that appears randomly when logging into a system? This window shows a help message, but it doesn’t always show when entering, I’m working with UiPath Studio automating a desktop application, thanks for any help
Use check app state activity and indicate that window when it appears. If the window appears in the target block place the activities that you want to do in that window. When window appears then the activities in the target block perform the operations.
Hope it helps!!
Use Check app state activity in modern Versions
Or
Use the “Element Exists” activity to check if the pop-up window is currently open. Set the timeout property appropriately to give the pop-up enough time to appear if it is going to show up.
Exception Handling:
- Use “Try Catch” blocks to handle any unexpected pop-up windows that might disrupt your automation flow.
- Inside the “Try” block, perform your main automation steps.
- Inside the “Catch” block, check if the pop-up window exists using the “Element Exists” activity.
- If the pop-up is detected, handle it appropriately (e.g., close it, click buttons, etc.), and then retry the main automation steps.
Use “Check App State” activity in modern experience or “On Element Appear” activity in classic experience.
Hope it helps!!
Thank you very much for your help
Thank you @Alvaro_Martinez
If you find the solution make mark it as solution to close the loop.
Happy Automation!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.