Help - trying to wait for windows to appear before clicking

Hi All,

Facing some issues with an automation trying to export documents from an application.

I am able to start the export and it launches a window as it processes.

When the export is finished (variable time each run - document load changes), a secondary window launches stating that its finished, and I need to hit the OK button here to close off all the popus, and to continue the automation:
Export complete

I’ve tried using an On Element Appear activity to wait for the Export Complete window, but that gives me a Validation Warning/Error notice on the activity and not sure how to get rid of that.

Tried also to use the Check app state to wait for the window to appear instead doesn’t work as it only has a set delay, instead of actually waiting for the window to appear.

Apologies for the single screenshot, only just registered for the Forum.

Thanks.

@vvanheerden

Add a “Do While” loop that keeps checking for the presence of the “Export Complete” window.
Inside the loop, use a “Find Element” activity to check for the presence of the “OK” button on the “Export Complete” window.
If the “OK” button is found, exit the loop.
If the “OK” button is not found, use a “Delay” activity to wait for a short period (e.g., 5 seconds) before checking again.

you can try with retry scope so that robot will try multiple times to click on OK button

There has to be some kind of timeout, else you risk waiting forever. So, you need to set a sensible value of timeout that you want to wait for the window to appear.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.