|
脚本如下:
Action()
{
web_add_cookie("RK=4X5RZI49QY; DOMAIN=s.pc.qq.com");
web_add_cookie("ptcz=3d401e2a5f58a15d99f4bf40c453546480b77e7f5b2367a4ddf117b675a2b81a; DOMAIN=s.pc.qq.com");
web_add_cookie("RK=4X5RZI49QY; DOMAIN=c.gj.qq.com");
web_add_cookie("ptcz=3d401e2a5f58a15d99f4bf40c453546480b77e7f5b2367a4ddf117b675a2b81a; DOMAIN=c.gj.qq.com");
web_url("WebTours",
"URL=http://127.0.0.1:2880/WebTours/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=http://s.pc.qq.com/navigate/adc/adc_loader.js?v=20160326171611", ENDITEM,
"Url=http://s.pc.qq.com/navigate/adc/v4/engine_loader_v3.js", ENDITEM,
"Url=http://s.pc.qq.com/navigate/adc/json2.js", ENDITEM,
"Url=http://s.pc.qq.com/navigate/adc/jquery.min.js?ver=3", ENDITEM,
"Url=http://c.gj.qq.com/fcgi-bin/microreport?gjguid=e642c7a7cf3ba3ad0845a7dd029cd1a0&type=10&reserve1=2&bid=1&rand=0.8991795711112939&refer=http%3A%2F%2F127.0.0.1%3A2880%2FWebTours%2F&reserve3=348832", ENDITEM,
"Url=http://s.pc.qq.com/navigate/adc/velocity.js", ENDITEM,
LAST);
web_url("iecompatdata.xml",
"URL=http://iecvlist.microsoft.com/IE8/iecompatdata.xml",
"TargetFrame=",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_reg_find("Text=jojo",
LAST);
lr_think_time(8);
web_submit_data("login.pl",
"Action=http://127.0.0.1:2880/WebTours/login.pl",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://127.0.0.1:2880/WebTours/nav.pl?in=home",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=126841.054110976zfctDizpHcAiDDDDDQVtzpDcADcf", ENDITEM,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=7", ENDITEM,
"Name=login.y", "Value=15", ENDITEM,
LAST);
lr_think_time(8);
web_url("SignOff Button",
"URL=http://127.0.0.1:2880/WebTours/welcome.pl?signOff=1",
"TargetFrame=body",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:2880/WebTours/nav.pl?page=menu&in=home",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
return 0;
}
报错:
正在开始迭代 1。
正在开始操作 Action。
Action.c(4): web_add_cookie 已成功 [MsgId: MMSG-26392]
Action.c(6): web_add_cookie 已成功 [MsgId: MMSG-26392]
Action.c(8): web_add_cookie 已成功 [MsgId: MMSG-26392]
Action.c(10): web_add_cookie 已成功 [MsgId: MMSG-26392]
Action.c(12): 在“http://127.0.0.1:2880/WebTours/”中检测到非资源“http://127.0.0.1:2880/WebTours/header.html” [MsgId: MMSG-26574]
Action.c(12): 在“http://127.0.0.1:2880/WebTours/”中检测到非资源“http://127.0.0.1:2880/WebTours/welcome.pl?signOff=true” [MsgId: MMSG-26574]
Action.c(12): 正在下载资源“http://s.pc.qq.com/navigate/adc/adc_loader.js?v=20160326171611”(由参数编号 10 指定) [MsgId: MMSG-26577]
Action.c(12): 正在下载资源“http://s.pc.qq.com/navigate/adc/v4/engine_loader_v3.js”(由参数编号 12 指定) [MsgId: MMSG-26577]
Action.c(12): 正在下载资源“http://s.pc.qq.com/navigate/adc/json2.js”(由参数编号 14 指定) [MsgId: MMSG-26577]
Action.c(12): 正在下载资源“http://s.pc.qq.com/navigate/adc/jquery.min.js?ver=3”(由参数编号 16 指定) [MsgId: MMSG-26577]
Action.c(12): 正在下载资源“http://c.gj.qq.com/fcgi-bin/micr ... amp;reserve3=348832”(由参数编号 18 指定) [MsgId: MMSG-26577]
Action.c(12): 正在下载资源“http://s.pc.qq.com/navigate/adc/velocity.js”(由参数编号 20 指定) [MsgId: MMSG-26577]
Action.c(12): 在 HTML“http://127.0.0.1:2880/WebTours/header.html”中找到资源“http://127.0.0.1:2880/WebTours/images/hp_logo.png” [MsgId: MMSG-26659]
Action.c(12): 在 HTML“http://127.0.0.1:2880/WebTours/header.html”中找到资源“http://127.0.0.1:2880/WebTours/images/webtours.png” [MsgId: MMSG-26659]
Action.c(12): 在“http://127.0.0.1:2880/WebTours/welcome.pl?signOff=true”中检测到非资源“http://127.0.0.1:2880/WebTours/nav.pl?in=home” [MsgId: MMSG-26574]
Action.c(12): 在“http://127.0.0.1:2880/WebTours/welcome.pl?signOff=true”中检测到非资源“http://127.0.0.1:2880/WebTours/home.html” [MsgId: MMSG-26574]
Action.c(12): 在 HTML“http://127.0.0.1:2880/WebTours/nav.pl?in=home”中找到资源“http://127.0.0.1:2880/WebTours/images/mer_login.gif” [MsgId: MMSG-26659]
Action.c(12): web_url("WebTours") 已成功,112501 个正文字节,3842 个标头字节 [MsgId: MMSG-26386]
Action.c(29): web_url("iecompatdata.xml") 已成功,988 个正文字节,465 个标头字节 [MsgId: MMSG-26386]
Action.c(44): web_submit_data("login.pl") 已成功,795 个正文字节,225 个标头字节 [MsgId: MMSG-26386]
Action.c(60): 错误 -27195: “web_submit_data”失败。找到“ jojo”的 0 处出现(RightOf=“, to the Web ”,LeftOf=“Welcome,”) [MsgId: MERR-27195]
Action.c(60): web_find 最高严重级别为“ERROR” [MsgId: MMSG-26391]
|
|