Wait for process bar to disappear

Hello All,
I have a process bar as seen in the picture. I want to wait till the process bar disappear. Sometime it just blink sometime it take few seconds to few minutes. I want to wait till it disappear and then run next step.
image

currently I am using Check App state function. I tried following.

The app waits for 15 sec when the image appear but then sometime it give error due to long wait.

Can someone help me with the right function or changes?

Thanks and regards.

1 Like

Try with Element to disappear instead of Element to appear as thats what u r looking for as mentioned here

It will Wait for the element to disappear from the user interface.

Cheers @tarangmehta1195

Hi @tarangmehta1195

Use Wait Element Vanish activity

image

@tarangmehta1195

you can also check

Doesnt work that why using Appear option

I tried first with this but the time is exceeding and it not success always

Can you describe how it doesn’t work? Have you set long enough timeout?

since the process bar appears as Bollean this gives error and I cant use this function.

You can simply surround that check app state activity chosen with wait for element to disappear in a TRY CATCH activity so that even if the element disappears before getting to that check app state and if it fails it can continue with the next set of activities

@tarangmehta1195

This activity runs only once. So if in the first run if it detects the element, it run Target Not Disappear option and the runs next step.

The same is happening when i Use Appear. It just run for one time to detect if it appears first time or not. This function doesnt repeat itself.

Ja true but it check the App state only once. I used Do while loop but didnt help

Not sure if I understand, but if the progress bar isn’t visible at first and then you need to wait for it to disappear, you’d need to use a combination of Appear & Disappear. Something like this (needs appropriate timeouts)

True But the issue here is I am not sure how long to wait. And that the problem for me at the moment. It can take few seconds upto couple of minutes

You need to set the maximum amount that you think that it could take. If it takes shorter time, the flow continues immediately, but if it takes longer than the maximum you can throw an exception, for instance.

1 Like

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