Forms Windows:在Internet explorer 8中自动填写简单表单

Forms Windows:在Internet explorer 8中自动填写简单表单,forms,internet-explorer,vbscript,automation,browser-automation,Forms,Internet Explorer,Vbscript,Automation,Browser Automation,我正试图自动填写一个简单的网页表单,并进入网站做一些监测任务 问题是这个网站只能在InternetExplorer8中运行。 我知道一些编码,我已经找到了使用VBScript的方法,但它不起作用,并给出了这个错误 Z:\000-Working_on\007- SDM script\checkitv1.vbs(6, 3) Microsoft VBScript runtime error: Object doesn't support this property or method: 'getEl

我正试图自动填写一个简单的网页表单,并进入网站做一些监测任务

问题是这个网站只能在InternetExplorer8中运行。 我知道一些编码,我已经找到了使用VBScript的方法,但它不起作用,并给出了这个错误

Z:\000-Working_on\007- SDM script\checkitv1.vbs(6, 3) Microsoft VBScript runtime
 error: Object doesn't support this property or method: 'getElementsByName'
这曾经奏效。请引导我使用任何编码语言通过此窗口,我将找出并学习该语言以自动完成其余部分

现在我唯一的要求是 1.用任何垃圾邮件填充用户名和密码字段。 2.单击提交按钮

您可以使用任何语言来实现这一点

编辑: 下面是我尝试过的粗略代码:

URL = "https://usd-gz.global.ao-srv.com/CAisd/pdmweb3.exe"
Set ie = CreateObject("InternetExplorer.Application")
With ie
    .visible=True
        .Navigate url
        .getElementsByName("USERNAME")(0).value = "abcdef"
        .getElementsByName("USERNAME")(0).value = "daddasd0"
        '.getElementsByName("imgBtn0_button")(0).Submit
End With


  Do until ie.ReadyState = 4 : WScript.Sleep 100 : Loop

如果没有给出错误的脚本代码,这可能是不可能回答的。哦,我很抱歉。。我马上就把它贴在编辑上(吃晚饭)。。它只有10到15行粗糙的vbscript。