VBScript to start website login

I found this script online, I edited most of it.

He can enter the username and password down, but cannot click the login.

Please help me fix. Here is the login forum.

http://desistream.tv/en/index.shtml 

Here is the Script it is currently in IE, but I will need to open it in Google Chrome.

 WScript.Quit Main Function Main Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_") IE.Visible = True IE.Navigate "http://desistream.tv/en/index.shtml" Wait IE With IE.Document .getElementByID("login_username").value = "myusername" .getElementByID("login_password").value = "mypassword" .getElementByID("form").submit End With End Function Sub Wait(IE) Do WScript.Sleep 500 Loop While IE.ReadyState < 4 And IE.Busy Do WScript.Sleep 500 Loop While IE.ReadyState < 4 And IE.Busy End Sub Sub IE_OnQuit On Error Resume Next WScript.StdErr.WriteLine "IE closed before script finished." WScript.Quit End Sub 
+4
source share
2 answers

Here ...

 Call Main Function Main Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_") IE.Visible = True IE.Navigate "http://desistream.tv/en/index.shtml" Wait IE With IE.Document .getElementByID("username").value = "myusername" .getElementByID("pass").value = "mypassword" .getElementsByName("frmLogin")(0).Submit End With End Function Sub Wait(IE) Do WScript.Sleep 500 Loop While IE.ReadyState < 4 And IE.Busy End Sub 
+3
source

If you look at the source of the page, you will see that the actual <form> is called frmLogin , not login .

+1
source

All Articles