I have created a library component which uses for logging in to a web portal. I have used a Try-Catch and inside try I used a Retry-Scope. Within this Retry, I have implemented login functionality and for the condition I have put a check app state with UI element from next page whether to confirm login is successful or not. I have enabled the incognito mode and my login functionality works as expected. But once it logged in, the web page is automatically closed before it checks the condition in retry scope. I would more appreciate, if anybody help me to figure this out?