Pause Ui Activity while the current Activity is in progress

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.

in such scenario, we can use retry scope activity and can sync the waiting till:

1 Like

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.

kindly note: we mentioned the retry scope activity:

the general idea of both approaches points into the same direction

  • repeat till a state is reached
  • check if the state is reached
    • pause and repeat OR break and go to next action
1 Like

@Moshin_Ali_Khan
we do feel that the topic can be closed by

1 Like

Increase the timeout on that Click activity.

@ppr , appreciate your quick assistance :slightly_smiling_face:

but we are not sure, the timeout can differ(increase) at times.

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.

1 Like

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