|
本帖最后由 jiachang 于 2010-10-13 14:24 编辑
web_reg_find是只在当前body中查找吗?如果有分页的怎么办- web_link("图书借阅查询",
- "Text=图书借阅查询",
- "Snapshot=t3.inf",
- LAST);
- lr_think_time(5);
- web_reg_find ("Text=3111109","SaveCount=3111109_Count",LAST);
- web_submit_form("BBorrowQuery.aspx",
- "Snapshot=t4.inf",
- ITEMDATA,
- "Name=ctl00$ContentPlaceHolder1$ddlCondition", "Value=图书条形码", ENDITEM,
- "Name=ctl00$ContentPlaceHolder1$txtCondition", "Value=3111109", ENDITEM,
- "Name=ctl00$ContentPlaceHolder1$btnQuery", "Value=查询", ENDITEM,
- LAST);
- if (atoi(lr_eval_string("{3111109_Count}")) > 0){ //判断如果Welcome字符串出现次数大于0
- lr_output_message("Log on successful."); }//在日志中输出Log on successful
- else{ //如果出现次数小于等于
- lr_error_message("Log on failed"); //在日志中输出Log on failed
- return(0);
- }
复制代码 查找的3111109是在第3页,在当前body中没有,运行完后提示3111109_Count = 0,但web_reg_find successful,这是为什么?
Action.c(35): Registered web_reg_find successful for "Text=3111109" 【MsgId: MMSG-26362]
Action.c(35): Notify: Saving Parameter "3111109_Count = 0"
Action.c(35): web_submit_form("BBorrowQuery.aspx") was successful, 27038 body bytes, 335 header bytes [MsgId: MMSG-26386]
Action.c(43): Notify: Parameter Substitution: parameter "3111109_Count" = "0"
Action.c(49): Error: Log on failed |
|