http://down.turbozv.com/develop/python/webtest/pamie20.zip
#
-*- Coding:GB2312
import
cPAMIE
ie
=
cPAMIE.PAMIE()
ie.navigate(
"
http://www.dormforce.net/Blog/parvel/login.aspx
"
)
ie.textBoxSet(
"
tbUserName
"
,
"
bt
"
)
ie.textBoxSet(
"
tbPassword
"
,
"
he
"
)
ie.buttonClick(
"
btnLogin
"
)
if
(True
==
ie.findText(unicode(
"
非法登录
"
,
"
cp936
"
))):
print
"
login failed!
"
else
:
print
"
login ok!
"
ie.quit()
2880



被折叠的 条评论
为什么被折叠?



