|
如下代码的功能是在页面“添加管理员”中添加管理员,回放后怎么没有添加成功呢?也不提示错误
- Action()
- {
- web_url("Login.aspx",
- "URL=http://10.11.11.111/libraryMS/Login.aspx",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=",
- "Snapshot=t1.inf",
- "Mode=HTML",
- LAST);
- web_submit_form("Login.aspx_2",
- "Snapshot=t2.inf",
- ITEMDATA,
- "Name=txtAdmin", "Value=tsoft", ENDITEM,
- "Name=txtPwd", "Value=111", ENDITEM,
- "Name=txtCode", "Value=", ENDITEM,
- "Name=btnLogin", "Value=登录", ENDITEM,
- EXTRARES,
- "Url=../LibraryMS/WebResource.axd?d=sQsZ8AfHHfX5j7Lh0K2vYg2&t=633936346575142915", "Referer=http://10.1.16.89/libraryMS/Default.aspx", ENDITEM,
- "Url=../LibraryMS/WebResource.axd?d=kEe3vR9BO-LC5GNwMzINFw2&t=633936346575142915", "Referer=http://10.1.16.89/libraryMS/Default.aspx", ENDITEM,
- "Url=images/index_02.gif", "Referer=http://10.1.16.89/libraryMS/Default.aspx", ENDITEM,
- LAST);
- web_link("管理员设置",
- "Text=管理员设置",
- "Snapshot=t3.inf",
- EXTRARES,
- "Url=../images/guanliyuanshezhi.gif", ENDITEM,
- LAST);
- web_link("添加管理员",
- "Text=添加管理员",
- "Snapshot=t4.inf",
- EXTRARES,
- "Url=../images/tianjiaguanliyuanxinxi.gif", ENDITEM,
- LAST);
- web_submit_form("AddAdmin.aspx",
- "Snapshot=t5.inf",
- ITEMDATA,
- "Name=ctl00$ContentPlaceHolder1$txtName", "Value=kkk", ENDITEM,
- "Name=ctl00$ContentPlaceHolder1$txtPwd", "Value=111", ENDITEM,
- "Name=ctl00$ContentPlaceHolder1$txtSPwd", "Value=111", ENDITEM,
- "Name=ctl00$ContentPlaceHolder1$btnAdd", "Value=添加", ENDITEM,
- LAST);
- return 0;
- }
复制代码 |
|