How do I get the automation to wait for the user to press Enter after a Log In error?
My project displays as WinForm for the user to enter their Username and password to log in to our mainframe system. The form simply has two text boxes to enter the username and password and a log in button. The automation waits for the log in button's click event to enter the user's credentials and log on to the system.
I have captured some of the possible log in error information and present messages to the user to correct the log in error. I don't see any key events for the text adapter in the interrogation window.
@DarrellE You don't get Key events from a text adapter (at least that I have tried). What I would wait for is the NewScreenShowing event (at the adapter level). This even fires when more than a couple characters change on the screen. This may not work for repeated incorrect passwords though as those might trigger the screen to display the same error already present. If possible, you might try to reset the screen so that the error goes away and then you can try again (disconnect and reconnect the session). If you can't do that, you'd really only know if an error occurred due to the lack of the next screen appearing within a reasonable time (i.e. a wait for create timeout).