Website doesn't recognize login

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
boton
Posts: 8
Joined: 13 Oct 2019, 22:41

Website doesn't recognize login

13 Oct 2019, 22:54

I have used this successfully to login to other websites but for this one particular website I'm working on doesn't recognize that there is a username and password even though the code below gives the login information.

Code: Select all

wb.document.getElementByID("username100").Value := "username@gmail.com"
wb.document.getElementByID("password").Value := "password123"

wb.document.getElementsByTagName("button")[6].Click()
The other method that I also have tried only works sometimes due to some sort of lag? I have inputted sleep commands where I think it will help with the delay but I'm not to sure If i'm doing it correctly. Any help would be appreciated

Code: Select all

wb.document.getElementsByTagName("input")[4].Focus()
send, "username@gmail.com"
sleep, 500
wb.document.getElementsByTagName("input")[6].Focus()
send, "password123"
sleep, 500
wb.document.getElementsByTagName("button")[6].Click()
MannyKSoSo
Posts: 440
Joined: 28 Apr 2018, 21:59

Re: Website doesn't recognize login

14 Oct 2019, 08:33

For your second script did you have SendMode, Input at the top of your script? This allows send to send all the characters at once instead of send each individual character (which should help with your delay). If it lags though you might still have some issues. Regarding the first script make value lowercase (as this matters within javascript) and see if it works.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: bobstoner289, Google [Bot], peter_ahk, Spawnova and 358 guests