执行的日志如下:
Starting action Action.
Action.c(6): web_add_cookie was successful [MsgId: MMSG-26392]
Action.c(8): Registering web_reg_find was successful [MsgId: MMSG-26390]
Action.c(10): Found resource "http://www.baidu.com/img/logo.gif" in HTML "http://www.baidu.com/" [MsgId: MMSG-26659]
Action.c(10): Found resource "http://gimg.baidu.com/img/gs.gif" in HTML "http://www.baidu.com/" [MsgId: MMSG-26659]
Action.c(10): Registered web_reg_find successful for "Text=百度" (count=6) [MsgId: MMSG-26364]
Action.c(10): web_url("www.baidu.com") was successful, 3414 body bytes, 837 header bytes [MsgId: MMSG-26386]
Action.c(19): "Text Check" successful. 4 occurrence(s) of "百度" found (RightOf="", LeftOf="") [MsgId: MMSG-27196]
Action.c(19): web_find was successful [MsgId: MMSG-26392]
Ending action Action.
注意其中的红色部分,第一条是关于web_reg_find 的,其count是6;
第二条是关于web_find的,4 occurrence(s)。查看帮助得知:
web_reg_find的描述是Registers a search for a text string on an HTML page.
web_find的描述是Searches inside an HTML page for a specified text string.
web_find的含义好理解,但是关于web_reg_find的含义就不太理解了,从哪里可以看出Registers的count是6呢?作者: Zee 时间: 2007-5-9 09:32
建议你看看这两个函数的详细用法,在Vugen里有明确的说明。作者: rickyzhu 时间: 2007-5-9 09:55
是这样的,没错,仔细看看web_reg_find和web_find的说明就知道了。作者: guxingyun 时间: 2007-5-9 10:32
了解了 我在录制的body中找到6处“百度”字样 所以应该是Registers a search了6次 但是这个Registers a search翻译成中文应该是什么更恰当些?
而web_find只是在html页面中寻找“百度”字样 所以只发现了4处作者: suchboy 时间: 2007-8-24 16:17
遇到了跟你一样的情况,最后找到了原因: