|
内容较多,这是lr自带的网页的一次注册过程,被我录下来了,希望各位大神们帮我参数化一下,循环注册十次,万分感谢,叩拜之
Action()
{
web_reg_find("Text=Web Tours",
LAST);
web_reg_find("Text=Web Tours",
LAST);
web_reg_find("Text=Web Tours",
LAST);
web_reg_find("Text=Web Tours Navigation Bar",
LAST);
web_url("WebTours",
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_add_cookie("REF=ID=f3ef8be1f568daaa:U=68c9ffd739a0f543:FF=2D=zh-CN:NW=1:TM=1332210333M=1332210453:S=vHqCAXIN1m5IQIpu; DOMAIN=www.google.com.hk");
web_add_cookie("NID=57=PC5NO_UATaomk-1AHLTgWubymv5lY5M2DfW_rte_JeODbl7-fpW95orieGwQjpiR2uv3QU2EEE9e_2g7eLqzeDAItETx4deHMFUkh5LXhMPsvmZVd0DIRFxLGrYL3Yz5; DOMAIN=www.google.com.hk");
web_reg_find("Text=info:http://127.0.0.1:1080 - Google 搜索",
LAST);
web_url("search",
"URL=http://www.google.com/search?client=navclient-auto&features=Rank:&q=info:http://127.0.0.1:1080&ch=71811134806",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_add_cookie("tbver=7.2; DOMAIN=data.alexa.com");
web_add_cookie("aid=gWjM61Z9yy83rr; DOMAIN=data.alexa.com");
web_url("gWjM61Z9yy83rr",
"URL=http://data.alexa.com/data/gWjM61Z9yy83rr?cli=10&dat=snba&ver=7.2&cdt=alx_vw%3D20%26wid%3D11092%26act%3D00400000000%26ss%3D1280x1024%26bw%3D1149%26t%3D0%26ttl%3D0%26vis%3D1%26rq%3D0&url=http://127.0.0.1:1080",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_reg_find("Text=User Information",
LAST);
web_url("login.pl",
"URL=http://127.0.0.1:1080/WebTours/login.pl?username=&password=&getInfo=true",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/home.html",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_reg_find("Text=User Information",
LAST);
web_submit_form("login.pl_3",
"Ordinal=1",
"Snapshot=t6.inf",
ITEMDATA,
"Name=username", "Value=test1", ENDITEM,
"Name=password", "Value=1234 ", ENDITEM,
"Name=passwordConfirm", "Value=1234", ENDITEM,
"Name=firstName", "Value=", ENDITEM,
"Name=lastName", "Value=", ENDITEM,
"Name=address1", "Value=", ENDITEM,
"Name=address2", "Value=", ENDITEM,
"Name=register.x", "Value=60", ENDITEM,
"Name=register.y", "Value=6", ENDITEM,
LAST);
web_reg_find("Text=Web Tours",
LAST);
web_reg_find("Text=Web Tours Navigation Bar",
LAST);
web_reg_find("Text=Welcome to Web Tours",
LAST);
web_image("button_next.gif",
"Src=/WebTours/images/button_next.gif",
"Snapshot=t7.inf",
LAST);
return 0;
} |
|