I would like to use vbscript to populate pre-defined fields on forms from a website. I have written some code which should work but I must be missing something. Here is the code I have now...
DIM objBrowser DIM objForm
Set objBrowser = CreateObject("InternetExplorer.Application") objBrowser.navigate "
https://accounts.craigslist.org/" objBrowser.Visible = True
While objBrowser.Busy WScript.Sleep 50 Wend
Set objForm = objBrowser.document.getElementByID("Email / Handle:") objForm.Value = "
sschtupak@hotmail.com" 'fill in the text box
WScript.Quit
The field is not populating and I get an "Object Required" erro on the line that starts objForm.Value... but this same code works on other sites (changed field values and website of course). Any help would be appreciated.
Thanks in advance
Software/Hardware used:
VBScript
ASKED:
January 11, 2010 7:27 PM
UPDATED:
January 11, 2010 10:58 PM