Web automation: How to respond to pop-up during login
I am writing an RPA automation for a web site using Internet Explorer.
I have an ASO Manager doing the login. There is a page with a user name text box, password text box and login button. These are indicated in the ASO properties.
Under certain conditions, the web site presents a modal dialog after pressing the Login button but before the page reloads. The automation must click a button on the modal dialog. I've captured the button. However, running in the debugger shows that the automation does not leave the AsoManager.PerformLogin block. When the login times out, the credentials dialog is displayed (but the credentials are fine). As soon as the modal dialog appears, it indicates that the login was successful and the automation should continue and click the button. How do I do this?
Sorry for how long I left this thread. I had other things to work on. I have solved my problem.
First, I set the ASO credentials Failed Login Rematch Attempts to zero. Since this automation runs as RPA, there is not a user to see that popup and do anything with it. The automation already checks if the credentials are set, which will work for a first (attended) run to set the credentials.
After making that change, the login block returned success even if the modal dialog appeared. So I matched the Continue button and clicked it if it appeared. It's now working.
No, it's not working. I'm attempting to interrogate the CSS display property, which is apparently how it becomes visible. So far, that's not working either, but I'm still debugging it. But my reply above was a step in the correct direction.