0
我有一个小的VBScript打开一个网页并输入我的登录凭证。但是,我总是遇到错误,不知道如何解决。找不到我的脚本错误
Call Main
Function Main
Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")
IE.Visible = True
IE.Navigate "https://x10hosting.com/sso/login"
Wait IE
With IE.Document
.getElementByID("identifier").value = "[email protected]"
.getElementByID("password").value = "FAKEPASS"
.getElementsByName("button button-rounded button-primary")(0).Submit
End With
End Function
Sub Wait(IE)
Do
WScript.Sleep 500
Loop While IE.ReadyState < 4 And IE.Busy
End Sub
的错误是:
line: 11 char: 9 Error: Object required: 'getElementsByName(...)(...)' code: 800A01A8 sources: Microsoft VBScript runtime error
@AnsgarWiechers请看帖子。我编辑了 –