I'm trying to test if my auto login to a website is successful with Openspan. If not I need to return to the login screen. Currently the program is using a PerformClick which continuously attempts the same login information obtained through a web form. Obviously this could lock a user from accessing if too many failed attempts.
You can try to use the WaitAny component. You can interrogate a control on the page after login and a control that is created when the logon fails. Then check which control is created and follow the logic accordingly. If login info is incorrect in the automation, you can try to prompt the user for input or you can try some other logic that works for you.
Please take a look at the image that I attached for an example.