Retry Scope - Retry counter

Hi all,

I’m missing some kind of retry counter in the retry scope activity, similar to the indexes that have been added to the for each activities.

I’d use this to - for example - restart an application when an error is detected. If the script sees that it’s retrying, I would close and re-open the application before continuing with the script that crashed

1 Like

You can create a counter yourself to do that. Just increment it each time the Retry Scope is invoked.

You can then design actions based on the counter number.

Hi @MatthiasVG

This is the exact purpose of Try-Catch routines. Could you elaborate a bit why it is not an option for you?

It’s added:
image

3 Likes

Here is a detailed article on that :slight_smile:

1 Like

Well, we need an output - retry index count, for example.

If I have a certain activity inside a retry scope set to retry two times, and I want to take a screenshot on the last retry attempt, I should be able to get the retry count output from the retry itself as opposed to creating my own counter variable and incrementing on each attempt.