|
这几天研究lr8.0的tour,关于删除最后一张机票订单功能,已经使用web_custom_request函数实现动态删除成功,并能反复运行,但发现logout却不能运行,报错:
Notify: Transaction "LOGOUT" started.
Action.c(131): web_image("SignOff Button") started [MsgId: MMSG-26355]
Action.c(131): Error -27987: Requested image not found [MsgId: MERR-27987]
logout的原始录制脚本为:
lr_start_transaction("LOGOUT");
web_image("SignOff Button",
"Alt=SignOff Button",
"Snapshot=t5.inf",
LAST);
lr_end_transaction("LOGOUT", LR_AUTO);
return 0;
具体原因发现脚本改用web_custom_request后,删除订单成功后网页显示缺少了左边的menu,见附图“
而用原始脚本播放时则一切正常,看附图:
脚本如下:
/*通过web_custom_request进行提交删除请求*/
web_custom_request("itinerary.pl",
"url=http://localhost/MercuryWebTours/itinerary.pl",
"Method=POST",
"Snapshot=t4.inf",
"Mode=HTML",
"Referer=http://localhost/MercuryWebTours/nav.pl?page=menu&in=itinerary\r\n",
str,
LAST);
/* web_submit_form("itinerary.pl",
"Snapshot=t4.inf",
ITEMDATA,
"Name=1", "Value=<OFF>", ENDITEM,
"Name=2", "Value=<OFF>", ENDITEM,
"Name=3", "Value=<OFF>", ENDITEM,
"Name=4", "Value=<OFF>", ENDITEM,
"Name=5", "Value=on", ENDITEM,
"Name=removeFlights.x", "Value=121", ENDITEM,
"Name=removeFlights.y", "Value=16", ENDITEM,
EXTRARES,
"Url=http://msent.vo.llnwd.net/o2/msftmsne/Prod/images/34/77/55/301557734.jpg", "Referer=", ENDITEM,
LAST);
*/
其中字符串str的内容就是:
”body=flightID=210305264-109329-CM&flightID=210305264-186253-CM&flightID=2103141933-30937-CM&flightID=210305264-417022-CM&5=on&flightID=210305264-493945-CM&.cgifields=1&.cgifields=2&.cgifields=3&.cgifields=4&.cgifields=5&removeFlights.x=121&removeFlights.y=16“
我今天研究了半天也不知道为什么改用web_custom_request后就不能显示menu。
请高手指导。谢谢!
[ 本帖最后由 cgy49 于 2006-12-22 09:48 编辑 ] |
|