Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started