Enquiry on Retry Scope and Check App

Hi all,

I am currently designing a RPA BOT to download data from a website. The website takes time to load the data before able to download.

My initial workflow returns error as the website has not finished loading.

How can I use Retry Scope and Check App together to achieve what I want?

Appreciate any guidance or tips. Thank you.

@chk

Welcome to the community

Actually you can try with wait for load option in your click or type into activities and set them to complete…and also in modern activities there is a verify execution option as well and auto retry the click or type into activities…you can leverage those as well to verify your clicks or type into actually worked or not

For safety use a check app state before click/type into to do the same…

On the other hand if its taking time retry might not help a lot…unless your site crashes sometimes and just retrying works

Hope this helps

cheers

1 Like

Hello,

Alternate Method:
Use Find Element inside the Try catch, you can set the Timeout property to >60secs.
If the website cannot load within that timeframe, the exception will be thrown.

Br.

Hi @chk

You can use check app state activity to check the browser finished loading or not by indicating the UI element in the website. And if not load properly you can use navigate browser activity for reload the browser.

Regards,
@supriya117

1 Like

Hi all, thanks for the advice and guidance!

To give some context, I would not reload the browser as it will restart the whole process again. I am accessing Qlik dashboards and they take awhile to load finish. Will verify execution if they work or not. Let me try and feedback to all. thanks

Some questions:

  1. For “wait for page load”, is it set to be complete?
  2. For “verify execution”, when we set “retry” to be true, will it be unlimited until success?
  3. For “timeout” set at 30, is it for every retry attempt’s timeout 30s?

Are there any documentation to read up on the properties?

Apologies for my beginners’ questions as I am figuring out how to use this software. Appreciate the responses received so far.

I have some qns to clarify on retry scope’s properties:

  1. what does continue on error meant? If I set it to false, does it mean it will continue retrying 1000x at 30s interval.
  2. Retry scope fails when the RPA bot is unable to identify the target on chrome screen. How best to circumvent this issue?

Thank you!

@chk

Yes then it will wait till all of the page is loaded

It is not unlimited only till the timeout it would retry multiple times…so if clicked and verification failed then if timeout is not reached then it will try again

No…It retries for multiple times in this time interval…not for every click and verification

Here is the document

Hope this helps

Cheers

1 Like

@chk

Continue on error is it continues to next activity even if the activity inside this retry fails…if you give 1000 and 30s it will try for 1000 times with 30s delay between each and then also if it fails as the continue on error is checked it wont throw an error instead will move to next activity

If you want to continue even when it fails to identify that is when you would give continue on error as true

cheers

thanks for prompt reply.

let me try to set a timeout of 3600s (1 hr) and see if it will get past the browser finished loading data

the doc really helps!

And your explanation are succint to the point.

Let me discuss with my colleague on how to get past our current problem and update all agn

1 Like

One more qn on concepts:

  1. Is there a difference between the click target and the verification target? Will verification target be the area / space that we set on screen after click action has been performed?

Thank you!!

@chk

Click target is for the actual target element you want to click on

Verification target is basically the outcome of the click…can be next page…can be a change on the screen…can be change in button anything

Cheers

1 Like

Thank you @Anil_G !!

I tried using verification targets to indicate the screen/area after clicking and set timeout to be 3600s with retry.

This is a much neater way than retry scope and check app.

Really appreciate your expert advice!

Make me more interested to continue using this app.

1 Like

@chk

Happy Automation

Please mark the solution so that others with similar question can get help …

cheers

Hi @Anil_G , combining click properties with check app state works perfectly. thanks all for the help!

1 Like

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