Jump to content
Sign in to follow this  
baldspot

Entering Username nad Password

Recommended Posts

baldspot

Hi All

I have the follwoing code that is desgined to log into a webpage. However, everytime I run the code I get an error msg inforing me that the credentials are incorrect.

The username is "happy" and the password is "days":

#include <IE.au3>

$IE = _IECreate("https://vwii.fortum.com/Production/Intra/auth/login.aspx")

_IELoadWait ($IE,3000)

Send("happy")

Send("{TAB}")

Send("days")

Send("{TAB}")

Send("{TAB}")

Send("{ENTER}")

I know the username and password is correct. So I can't understand when AutoIT enters the same detials, I get an error message. any ideas why this is happening

Share this post


Link to post
Share on other sites
baldspot

Got it working - was sending the text incorrectly.

thx

Share this post


Link to post
Share on other sites
jnkbcs

could you post what you found out. It would greatly appreciate

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.