|
在回放录制的登录百度页面时提示找不到请求的链接(“文本=退出”),逐步运行时发现到 web_url("www.baidu.com_2"步时显示找不到页面,详细的脚本如下:
Action()
{
web_add_cookie("BAIDUID=EAB68FFEC21E1D16ECBB20CD045F434C:FG=1; DOMAIN=www.baidu.com");
web_add_cookie("USERID=9148de6f45e7f022bf2d1a4ea3f7d14f; DOMAIN=www.baidu.com");
web_url("www.baidu.com",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t34.inf",
"Mode=HTML",
EXTRARES,
"URL=/js/bdsug.js?v=1.0.3.0", ENDITEM,
"URL=http://svrintl-g3-aia.verisign.com/SVRIntlG3.cer", ENDITEM,
LAST);
web_add_cookie("STOKEN=170ad87562eb2b6353054fc6d2645a8c; DOMAIN=passport.baidu.com");
web_add_cookie("BAIDUID=EAB68FFEC21E1D16ECBB20CD045F434C:FG=1; DOMAIN=passport.baidu.com");
web_add_cookie("USERID=9148de6f45e7f022bf2d1a4ea3f7d14f; DOMAIN=passport.baidu.com");
web_link("登录",
"Text=登录",
"Snapshot=t35.inf",
EXTRARES,
"URL=https://passport.baidu.com/style/login.css?v=1.3", "Referer=https://passport.baidu.com/?login&tpl=mn", ENDITEM,
"URL=https://passport.baidu.com/js/login.js?v=1.3", "Referer=https://passport.baidu.com/?login&tpl=mn", ENDITEM,
"URL=https://passport.baidu.com/export/login_news.js?t=1314007249", "Referer=https://passport.baidu.com/?login&tpl=mn", ENDITEM,
"URL=https://passport.baidu.com/?verifypic", "Referer=https://passport.baidu.com/?login&tpl=mn", ENDITEM,
"URL=http://www.baidu.com/search/images/login/xwdl.jpg", ENDITEM,
"URL=https://passport.baidu.com/img/news_icon.gif", "Referer=https://passport.baidu.com/?login&tpl=mn", ENDITEM,
"URL=http://www.baidu.com/search/img/logo.gif", ENDITEM,
LAST);
lr_think_time(4);
web_submit_data("passport.baidu.com",
"Action=https://passport.baidu.com/?login",
"Method=POST",
"RecContentType=text/html",
"Referer=https://passport.baidu.com/?login&tpl=mn",
"Snapshot=t36.inf",
"Mode=HTML",
ITEMDATA,
"Name=tpl_ok", "Value=", ENDITEM,
"Name=next_target", "Value=", ENDITEM,
"Name=tpl", "Value=mn", ENDITEM,
"Name=skip_ok", "Value=", ENDITEM,
"Name=aid", "Value=", ENDITEM,
"Name=need_pay", "Value=", ENDITEM,
"Name=need_coin", "Value=", ENDITEM,
"Name=pay_method", "Value=", ENDITEM,
"Name=u", "Value=http://www.baidu.com/", ENDITEM,
"Name=return_method", "Value=get", ENDITEM,
"Name=more_param", "Value=", ENDITEM,
"Name=return_type", "Value=", ENDITEM,
"Name=psp_tt", "Value=0", ENDITEM,
"Name=password", "Value=Apple2000", ENDITEM,
"Name=safeflg", "Value=0", ENDITEM,
"Name=isphone", "Value=tpl", ENDITEM,
"Name=username", "Value=xljtest1", ENDITEM,
"Name=verifycode", "Value=", ENDITEM,
LAST);
web_url("www.baidu.com_2",
"URL=http://www.baidu.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t37.inf",
"Mode=HTML",
LAST);
lr_think_time(4);
web_link("退出",
"Text=退出",
"Snapshot=t38.inf",
EXTRARES,
"URL=http://www.baidu.com/img/i-1.0.0.png", "Referer=http://www.baidu.com/", ENDITEM,
"URL=http://www.baidu.com/img/bg-1.0.0.gif", "Referer=http://www.baidu.com/", ENDITEM,
"URL=http://www.baidu.com/js/bdsug.js?v=1.0.3.0", "Referer=http://www.baidu.com/", ENDITEM,
LAST);
return 0;
} |
|