Code: Select all
#SingleInstance, Force
LoginPassword := "admin"
pwb := ComObjCreate("InternetExplorer.Application") ;// Create an IE object
pwb.Visible := true ;// Make the IE object visible
pwb.Navigate("http://192.168.0.1/login.asp")
while pwb.busy or pwb.ReadyState !=4
sleep, 100
Password_input := pwb.document.getElementById("Password")
Password_input.value := LoginPassword
pwb.document.getElementById("???????????").click()
There is no Name or ID in element, at least I can't find it, however I have Inner text which is "OK" and Index is "28".. How can I click on that button?
Thanks!