|
请教各位大神,我在录制机票预订系统的脚本后设置文本检查点后回放报错,报错为:Error -26366: "Text=Welcome" not found for web_reg_find [MsgId: MERR-26366]
脚本如下:
Action()
{
web_url("WebTours",
"URL=http://127.0.0.1:8080/WebTours/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_reg_find("Search=Body",
"Text=Welcome",
LAST);
web_submit_data("login.pl",
"Action=http://127.0.0.1:8080/WebTours/login.pl",
"Method=POST",
"TargetFrame=body",
"RecContentType=text/html",
"Referer=http://127.0.0.1:8080/WebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=114123.242608343fiHAcVtpcQVzzzzHDfccVpcifHf", ENDITEM,
"Name=username", "Value={username}", ENDITEM,
"Name=password", "Value=bean", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=58", ENDITEM,
"Name=login.y", "Value=10", ENDITEM,
LAST);
lr_start_transaction("搜索并预定航班");
哪位大神能帮我看看?十分感谢! |
|