六国破灭,公仆本色,马妍婷
on error resume next
url = " http://www.bathome.net/logging.php?action=login"
username = "***"
password = "***"
set ie = createobject("internetexplorer.application")
ie.visible = true
ie.navigate url,4 ' " http://www.baidu.com"
do until 4=ie.readystate
wscript.sleep 200
waittime = waittime + 200
if waittime > 15000 then exit do
loop
'wscript.echo waittime
if 4<>ie.readystate then
ie.quit
wscript.quit
end if
set dom = ie.document
set form = dom.getelementbyid("loginform")
form.all("username").value = username
form.all("password").value = password
form.all("cookietime").checked = true
form.all("loginsubmit").click()
原文: http://www.enun.net/?p=1093
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!!
点击进行留言回复
相关文章:
-
-
-
-
用vbs实现文本循环读取
因为测试中需要读取一批url数据进行浏览,其实使用qtp本身的table能实现多种读取方式,但是因为需要tabel是使用excel保存的,在没有...
[阅读全文]
-
-
-
-
-
-
-
网友评论