Hi,
In retry scope I like to keep clicking until element does not exist. How to put the condition, element not exist in retry scope?
thank you,
Hi,
In retry scope I like to keep clicking until element does not exist. How to put the condition, element not exist in retry scope?
thank you,
Hi @A_Learner
→ The Retry scope activity has to the two block one is action and other is Condition block.
→ In Action block insert the activities that you want to retry, inside the condition block insert the element exist activity and indicate the specific element that you want to check.
→ The bot will execute the action block first and check the condition if condition is satisfied it comes out of retry scope, if the condition is false then it will go back and execute action block this process will continue untill the condition got satisfied or the number of retries completed.
→ By default the number of retries is 3, if you want to change you can do it in the number of retries option in the retry scope activity properties.
Check the below image for better understanding,
Hope it helps!!
Hello @A_Learner welcome to the community.
Above to the Retry Method, I am posting the alternate method of using Do…While loop.
You need to make sure that add some checks so that workflow doesn’t result in infinite loop. I have added a dummy sample, the code is similar to above screenshot just using basic looping.
Retry_Tutorial.xaml (8.6 KB)
Thanks
If you are working in Windows compatility and modern (which you should be) the newest version of UiPath.System.Activities the Do While now has a loop number limiter property. The Retry Scope and Do While are now very, very similar - the one major difference still being that the Retry Scope automatically catches exceptions.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.