TA的每日心情 | 奋斗 2015-9-1 16:13 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
本帖最后由 yy_miao 于 2016-1-26 09:58 编辑
楼主用的是LR11,准备录制的是:登录BBS,发一个贴,退出BBS。 BBS是楼主自己装的一个单机版phpwind85
出现的问题是:录制的时候明明是登录成功,但回放的时候显示不成功。回放的时候,感觉根本没有填写账号密码就直接点击了登录。登录就夭折了后面就运行不下去了 。求助。如图:
脚本如下: 因为帖子太长所以删掉了登录以外的部分。
Action()
{
web_add_cookie("3b937_lastpos=T23; DOMAIN=localhost");
web_add_cookie("3b937_ol_offset=98; DOMAIN=localhost");
web_add_cookie("3b937_ipstate=1453708311; DOMAIN=localhost");
web_add_cookie("3b937_cloudClientUid=9955545; DOMAIN=localhost");
web_add_cookie("3b937_threadlog=%2C3%2C; DOMAIN=localhost");
web_add_cookie("3b937_bubble=a%3A2%3A%7Bs%3A19%3A%22pw_all_tip_usercard%22%3Bi%3A1%3Bs%3A16%3A%22pw_all_tip_medal%22%3Bi%3A1%3B%7D; DOMAIN=localhost");
web_add_cookie("3b937_readlog=%2C14%2C15%2C16%2C17%2C18%2C19%2C20%2C21%2C22%2C23%2C; DOMAIN=localhost");
web_add_cookie("3b937_jobpop=0; DOMAIN=localhost");
web_add_cookie("xposcms_culture=zh; DOMAIN=localhost");
web_add_cookie("3b937_ck_info=%2F%09; DOMAIN=localhost");
web_add_cookie("3b937_lastvisit=27%091453708352%09%2Fphpwind85%2Fread.php%3Ftid23%26ds1; DOMAIN=localhost");
web_add_cookie("3b937_ci=read%091453708352%0923%093; DOMAIN=localhost");
web_url("phpwind85",
"URL=http://localhost:8080/phpwind85",
"TargetFrame=http://localhost:8080/phpwind85",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=/phpwind85/js/lang/zh_cn.js", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/wind/bg.jpg", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/wind/topbar.png", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/button.png", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/select_arrow.gif", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/wind/navA.png?20141218", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/del.png", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/wind/searchA.png", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/wind/search_input.png", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/wind/search_btn.png", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/wind/down.png", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/wind/colon.png", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/wind/h.png", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/wind/old.gif", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/wind/new.gif", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
"URL=/phpwind85/images/pwicon/top.png", "Referer=http://localhost:8080/phpwind85/", ENDITEM,
LAST);
web_submit_data("login.php",
"Action=http://localhost:8080/phpwind85/login.php?nowtime=1453711810513&verify=fa56acbb24282070",
"Method=POST",
"TargetFrame=",
"RecContentType=text/xml",
"Referer=http://localhost:8080/phpwind85/",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=jumpurl", "Value=http://localhost:8080/phpwind85/index.php", ENDITEM,
"Name=step", "Value=2", ENDITEM,
"Name=ajax", "Value=1", ENDITEM,
"Name=verify", "Value=fa56acbb24282070", ENDITEM,
"Name=pwuser", "Value=admin", ENDITEM,
"Name=pwpwd", "Value=admin", ENDITEM,
"Name=lgt", "Value=0", ENDITEM,
LAST);
web_url("index.php",
"URL=http://localhost:8080/phpwind85/index.php",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"URL=images/wind/bg.jpg", ENDITEM,
"URL=images/g/facebg_a.png", ENDITEM,
"URL=images/wind/searchA.png", ENDITEM,
"URL=images/down.png", ENDITEM,
LAST);
|
|