I have tried the above code and all it does is take me back to a logon form
The User name is in tack but the password is blanked. It is not like an invalid password or username. I have tried that and when the page is displayed with and invalid entry then an indication of and invalid entry is displayed.
I did get it working with the focus on the login element and using SendKey, but this is not the best way to do this. Sendkey send keys to the active form, so you cannot touch the computer when running the application.
A note here is that the web form is from a Secure server, I am not sure if that makes a difference or not.
|