I'm trying to write my first website login script but always getting an error in line 9 position 9 saying: "Object Required: 'getElementByID(...)' 800A01A8. Here's my code for the real working site so that you may have a try:
Call Main Function Main Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_") IE.Visible = True IE.Navigate "https://www.valuedopinions.com/eng/signin" Wait IE With IE.Document .getElementByID("tx_voputilities_pi1[email]").value = "my@email.com" .getElementByID("tx_voputilities_pi1[password]").value = "mypassword" .getElementByID("tx_voputilities_pi1[sign_in]")(0).Submit End With End Function Sub Wait(IE) Do WScript.Sleep 500 Loop While IE.ReadyState < 4 And IE.Busy End Sub Please help me to write correct working code! It' urgent!
Many thanks beforehand, Sergey