|
附上脚本。。。
Action()
{
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_find("signButton",
"LeftOf=to get access to",
"What=sign up now",
LAST);
web_image_check("web_image_check",
"Src=images/mer_login.gif",
LAST);
web_link("sign up now",
"Text=sign up now",
"Snapshot=t2.inf",
LAST);
lr_start_transaction("startLogin");
web_submit_form("login.pl",
"Snapshot=t3.inf",
ITEMDATA,
"Name=username", "Value={username}", ENDITEM,
"Name=password", "Value={password}", ENDITEM,
"Name=passwordConfirm", "Value=21", ENDITEM,
"Name=firstName", "Value=21", ENDITEM,
"Name=lastName", "Value=21", ENDITEM,
"Name=address1", "Value=21", ENDITEM,
"Name=address2", "Value=21", ENDITEM,
"Name=register.x", "Value=65", ENDITEM,
"Name=register.y", "Value=5", ENDITEM,
LAST);
lr_end_transaction("startLogin", LR_AUTO);
return 0;
}
[ 本帖最后由 lytal 于 2009-7-12 10:53 编辑 ] |
|