Skip to content Skip to sidebar Skip to footer

Ie 9 Error Getelementbyid: Object Required

for some reason, VBS below works like a charm in IE 8, but in IE9 on both of my Laptops I get Object Required at .getElement. How can I fix this please. WScript.Quit Main Functio

Solution 1:

You need to use the right names. The names you have given are the Name property, not the ID, so:

.getElementByID("login_username").value = "myuser"
.getElementByID("login_password").value = "mypass"

Should be:

.getElementByID("username").Value = "myuser"
.getElementByID("pass").Value = "mypass"

Post a Comment for "Ie 9 Error Getelementbyid: Object Required"