Hi, I’m building an automation where it has to wait for the report to close. The problem is that the app freezes while it generates the report. This could take from 15 - to 60 mins to complete.
I have added Retry Scope of 30sec x 100 but it still times out because the Element Exists inside cannot find the element because the app is frozen.
How do I achieve for the bot to wait until the app stops freezing without using delay? TIA!
Can you describe your problem further. Are you waiting for a report to close or waiting for the app to generate the report? More details are better.
Which version of Studio are you using?
In the meantime, have you tried “Wait Element Vanish”?
(This may not be a perfect solution but) If elements are not responding, are you able to use some image based activities (Find Image or Wait Image Vanish) and an IF activity to delay/continue accordingly.
In the retry scope increase the time out of the element exist activity to 20 mins and retry scope interval to 1 min and number of retries to 3 or 4.
Doing so, your code will check for the element in the first try until 20 mins and if it’s found within 20 mins say at 16th min it will exit the retry scope on 16th min. If its not found within 20 mins then it will wait for a min and try the 2nd time and it will try for 3 or 4 times that will cover 60 mins (maximum time the app can be frozen). Time out property will help you save time efficiently without using delay.
Assuming you have to wait for the application to respond, if it can take up to 60 mins, then a wait time of 30 sec * 100 = 50 minutes is not enough.
A retry scope is not even required, you can just an Element Exists / Check App State activity with 60 minutes timeout (if that’s the max). It will then wait up to 60 minutes, and continue as soon as the application responds, or timeout at 60 minutes.
Thank you everyone. I have decided to leave the app running. If I wait for the app to finish and then close, it just means the bot is unavailable for that duration.
Hi, to give you all an update. I found a way to export the file where the maximum time would take 40 minutes. So, I added an activity for the bot to check in 5-minute intervals via Retry Scope and within Get Process and if the app is responding is True then end Retry Scope.