Action()
{
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=../favicon.ico", "Referer=", ENDITEM,
LAST);
return 0;
}
{
web_reg_find("text=welcome",
//想要搜索的文本,不区分大小写
"savecount=welcome_count",
//对搜索到的文本执行计数,也就算在页面中搜索到多少个指定文本,在日志中以count=X为计数显示
"fail=found",
//以找到指定文本或未找到指定文本来设置函数执行成功与否,当前为当找到指定文本时,设置当前函数执行失败
LAST);
注意:该函数需要写在要查找页面的前面,当前放置在web_url("WebTours"函数前,意味着在当前页中查找welcome文本
"URL=http://127.0.0.1:1080/WebTours/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=../favicon.ico", "Referer=", ENDITEM,
LAST);
return 0;
}