|
本帖最后由 zengli80 于 2011-9-1 13:17 编辑
一个用身份证登录,进行在线答题的功能,录制脚本如下
web_set_max_html_param_len("1064");
/* Registering parameter(s) from source task id 3
// {CSRule_1_UID5} = "dDwtNjgzNDQ1MjE5OztsPGJ0bkxvZ2luOz4+iu/zEwiBE+UI7XI28dwZ+fkulxo="
// */
web_reg_save_param("CSRule_1_UID5",
"LB= value=\"",
"RB=\"",
"Ord=2",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("login.aspx",
"URL=http://system.powersafety.com.cn/Etacp/Business/pub/webpub/PUb_Online/login.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/Etacp/Images/css/textbox.css", ENDITEM,
LAST);
/* Registering parameter(s) from source task id 46
// {CSRule_1_UID8} = "420203198012122561"
// */
web_reg_save_param("CSRule_1_UID8",
"LB= value=\"",
"RB=\"",
"Ord=3",
"Search=Body",
LAST);
/* Registering parameter(s) from source task id 47
// {CSRule_1_UID12} = "dDwtMTczODIzODUxMTt0PHA8bDxwRXhhbU51bTtzdHJDbGFzc0NvZGU7c3RyVXNlckFjY291bnQ7c3RyRXhhbVBhcGVyO3N0ckd1aWQ7PjtsPDQyMDIwMzE5ODAxMjEyMjU2MTswMDAxMDEwMTAxZDQzOGUxNDctMzdhOS00Y2I4LTk5ODctZWVjZDI3ZDVhZmU4O3h5MTs2NzNkYjY3MC01MjQ4LTQ1NDEtOWIzMC1jNWFhYzAyMDllNjg7NTRlZTMxYTktMjhlNi00MDA0LTg4NWYtYzNlYzUyNGU1MGJhOz4+O2w8aTwxPjs+O2w8dDw7bDxpPDE+O2k8Mj47aTw0PjtpPDY+O2k8OD47aTwxMD47aTwxMj47PjtsPHQ8cDxwPGw8VGV4dDs+O2w8Jm5ic3BcO34mbmJzcFw7Oz4+Oz47Oz47dDxwPHA8bDxUZXh0Oz47bDzljbHljJblk4HnlJ/kuqfnu4/okKXljZXkvY3kuLvopoHotJ/otKPkurrln7norq07Pj47Pjs7Pjt0PHA8cDxsPFRleHQ7PjtsPOWNseWMluWTgeeUn+S6p+e7j+iQpeS4u+imgei0n+i0o+S6uuiAg+ivlTs+Pjs+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w85a2m5ZGYMTs+Pjs+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w8NDIwMjAzMTk4MDEyMTIyNTYxOz4+Oz47Oz47dDxwPHA8bDxUZXh0Oz47bDwyMDExLTgtMjkgMjI6MzQ6MDAmbmJzcFw76IezJm5ic3BcOzIwMTEtOS0xMSAyMjozNDowMDs+Pjs+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w8NjDliIbpkp87Pj47Pjs7Pjs+Pjs+PjtsPGltZ2J0bkVudGVyOz4+ztjAkBiz8524dWRbyfRlHX0kzBo="
// */
web_reg_save_param("CSRule_1_UID12",
"LB= value=\"",
"RB=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_submit_data("login.aspx_2",
"Action=http://system.powersafety.com.cn/Etacp/Business/pub/webpub/PUb_Online/login.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://system.powersafety.com.cn/Etacp/Business/pub/webpub/PUb_Online/login.aspx",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={CSRule_1_UID5}", ENDITEM,
"Name=strUserAccount", "Value=420203198012122561", ENDITEM,
"Name=strChechNO", "Value=", ENDITEM,
"Name=btnLogin.x", "Value=44", ENDITEM,
"Name=btnLogin.y", "Value=15", ENDITEM,
LAST);
/* Registering parameter(s) from source task id 59
// {CSRule_1_UID20} = "673db670-5248-4541-9b30-c5aac0209e68"
// */
web_reg_save_param("CSRule_1_UID20",
"LB= value=\"",
"RB=\"",
"Ord=6",
"Search=Body",
"RelFrameId=1",
LAST);
/* Registering parameter(s) from source task id 59
// {CSRule_1_UID18} = "1"
// */
web_reg_save_param("CSRule_1_UID18",
"LB= value=\"",
"RB=\"",
"Ord=3",
"Search=Body",
"RelFrameId=1",
LAST);
/* Registering parameter(s) from source task id 59
// {CSRule_1_UID19} = "0"
// */
web_reg_save_param("CSRule_1_UID19",
"LB= value=\"",
"RB=\"",
"Ord=4",
"Search=Body",
"RelFrameId=1",
LAST);
/* Registering parameter(s) from source task id 59
// {CSRule_1_UID21} = "xy1"
// */
web_reg_save_param("CSRule_1_UID21",
"LB= value=\"",
"RB=\"",
"Ord=7",
"Search=Body",
"RelFrameId=1",
LAST);
/* Registering parameter(s) from source task id 59
// {CSRule_1_UID16} = "60"
// */
web_reg_save_param("CSRule_1_UID16",
"LB= value=\"",
"RB=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_submit_data("PUB_Online_Info.aspx",
"Action=http://system.powersafety.com.cn/Etacp/Business/pub/webpub/PUb_Online/PUB_Online_Info.aspx?pExamNum={CSRule_1_UID8}",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://system.powersafety.com.cn/Etacp/Business/pub/webpub/PUb_Online/PUB_Online_Info.aspx?pExamNum={CSRule_1_UID8}",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={CSRule_1_UID12}", ENDITEM,
"Name=imgbtnEnter.x", "Value=65", ENDITEM,
"Name=imgbtnEnter.y", "Value=12", ENDITEM,
LAST); |
|