Question: Why is my VBScript not logging in properly? This .vbs script should open reddit and automatically login. Instead I get an error stating I need

Why is my VBScript not logging in properly? This .vbs script should open reddit and automatically login. Instead I get an error stating I need an object? (The username and password fields are not an actual account).

Set objIE = CreateObject("InternetExplorer.Application")

Call objIE.navigate("https://old.reddit.com")

objIE.Visible = True

Do Until objIE.ReadyState = 4 : Call WScript.Sleep(100) : Loop

With objIE.Document .getElementByID("user").value = "username" .getElementByID("passwd").value = "mypass" .getElementByID("submit").submit

End With

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!