I have a process which opens an application and performs some activity. At one point the application is querying which shows a progress bar with a label saying, “Current status: Querying. . . . .”
The issue is when the process comes to this part, the next activity is triggered after some time which is expecting to click on a close button, and it fails by timing out since the current window is still in progress and hasn’t finished. I need to somehow put a wait or a pause while the querying activity is running and only trigger the next activity when the querying activity finishes its run.
so, I have tried using delay within a do while loop until certain condition is met. it does work, basically delays and waits until the condition is true and exits when the condition becomes false. So I’m getting the attribute status text and validating in the do while loop and when it is false then exit and move onto next activity.
I’m just trying to understand the best way to get this working. I hope this method is fine and won’t cause any errors.
Doesn’t matter. Set it to long enough to account for the longest you’d ever expect it to take. As soon as the Close button appears it’ll continue - it doesn’t wait until the end of the timeout then look for the button. It continually looks for the button until the timeout expires.