Hi developers,
I am new to AA. I have a small doubt about throw activity.
I am performing below steps:
Step1: Launch acme web application. https://acme-test.uipath.com/login
Step2: After launching application I want to check if it is a fresh login or already logged in.
If it is already logged in, then I want to throw an exception and I want to click logout button and close the window. (here, I am capturing dashboard text and checking for availability in https://acme-test.uipath.com/home and if text is available then I want to throw exception as “Already logged in”
Step3: Once logout and safe close is done, then i want to send an email and I want to exit from the flow and I don’t to want to perform the rest of logic
Here, I have used try, catch and finally blocks
Attaching the logic and I am very much confused about what logic I have to kept inside the catch block.
Kindly clear my doubt and provide the best solution.
Thanks.