i am using retry scope activity for the website and check for the element exists for 3 times in try block and after trying 3 times if the element does not exists then i want to throw business rule exception in catch block
can any one help me
You don’t need to check multiple times with Retry. Just set the timeout of the Check App State to however long you want it to wait for the element to appear. For example if you set it to 30 seconds it will keep checking for 30 seconds, or until the element appears. And you don’t need a Try. Just put the Throw in the “element does not appear” section of Check App State.
iam not using modern activities
You should be. This is a perfect example of why, you don’t need all these activities and variables and Try and Retry…just need one activity Check App State and it does it all for you. Classic is the old way. Modern is the new, and much better way. It is long past time for you to move to modern.
our studio is old version modern activities not there
There is no reason not to upgrade. It doesn’t cost anything. You are missing out on a lot by using an old version.
Anyway, for classic just use the Element Exists activity. Set the timeout to wait long enough. Use the output property which will put True or False into your variable. Then use an If to check whether it’s True or False - if it’s False use a Throw.