返回列表 发帖

[问题求助] vbs自动填表单的Document用法

用网上找的这个代码,但对这个页面操作怎么就不行了呀?老提示:缺少对象: 'Document.GetElementById(...)'
网上没能找到有关Document的详细用法?
望各位好汉指点指点!!先谢谢啦!
Option Explicit
Dim MKuser,MKpass,ie
MKuser="123456789"
MKpass="123456"
Set ie=CreateObject("InternetExplorer.Application")
ie.Navigate "http://211.142.211.10/?wlanacname=0007.0736.731.00&wlanuserip=10.200.130.77&ssid=CMCC-EDU"
ie.Visible=1
While ie.Busy OR ie.ReadyState <> 4
Wend
ie.Document.GetElementById("UserName").Value = MKuser
ie.Document.GetElementById("PassWord").Value = MKpass
ie.Document.All.LoginForm.Submit
Set ie = NothingCOPY

返回列表