Check App State and Statements to retry

You don’t need all this complicated Try/Catch stuff, RE Framework, etc. You don’t need to use Check App State to wait for it to appear before clicking it. That’s the purpose of the timeout of the Click activity.

All you need is a Retry Scope with the refresh and then the Click. In the Retry Scope properties you can control how many times it will try. Retry Scope tries again if there is any error, which is what happens if the element doesn’t appear within the timeout of the Click activity.

The trickiest part is you won’t want the refresh to execute the first time it tries. So you just use a counter and put an If around it and check if the counter is >0 before refreshing.