I am writing .vbs script file which works for different sites, but I am writing auto login script for my university web page for internet page login.
So I have working t
I'm not sure a form element has a member method called submitAction. Should it be simply submit?
And I don't see any elements with the IDs you're looking for: "username", "password" or "top"
With IE.Document
.getElementByID("username").value = "myuser"
.getElementByID("password").value = "mypass"
.getElementByID("top").submitAction
End With
I'm guessing you're looking for eg
where you would use getElementsByName, which returns an array of elements
dim elements: set elements = document.getElementsByName("username")
elements(0).Value = "username"