标签:自动登陆
‘定义变量‘调用IE程序
Set IE = CreateObject("InternetExplorer.Application")
IE.Top = 100
IE.Left= 100
IE.Width = 1280
IE.Height = 900
‘IE.Navigate "http://localhost/tr-consumer/top"
IE.Navigate "http://localhost:9080/NBJimWeb/jhc014.do"
‘窗口可视化
IE.Visible = True
‘用循环语句确保网页加载完毕才执行下面操作
Do while IE.ReadyState<> 4 or IE.busy
loop
‘设置延迟時間
wscript.sleep 300
IE.document.getelementById("id").value=username
wscript.sleep 200
IE.document.getelementById("pass").value=password
wscript.sleep 200
IE.document.getelementById("login").click
标签:自动登陆
原文地址:http://blog.51cto.com/13618759/2092771