I created a login library but when I install it in my workflow I get some issues.
The bot logins and then logs out when it reaches the main workflow, so the rest of my activities can’t be executed thus the breakpoint of sequence.
Kindly advise, thinking the problem could be with the use browser activity URL since the URL is not exactly the same as the one in the Login activity(Library).
And here the bot fails to locate the UI element because the element appears after login and at that point the bot has already logged out.
To shade more light the use browser activity opens up a new browser window, so there is no continuity in the workflow.
Is login functionality and the element that you are trying to locate both exists in same browser?
If yes, please use attach browser activity in the beginning, inside which do login,
right after login, use element exists to validate if element has appeared or not
if element behaves inconsistently and takes time to load sometimes, use ‘waitforready’ property and mark as ‘interactive’. Also consider using retry scope for this element exists and exit that only if element is found. If not found, exit from the flow.
Please try this and let me know if there is any change in the behavior.