web_find

 The web_reg_find function has replaced the deprecated web_find function. This feature was only available for recorded scripts that used HTML. To find a particular text string within an HTML page, the web_find function was used. The slowness of this feature is one reason why it should be deprecated. Since it only searches the context after the HTML request has been completed, it runs slower than web_reg_find. In C language scripts, the web_find function has been replaced by the web_reg_find function, which is faster and can be applied to both HTML-based and URL-based recordings.

Web_find is added after the HTML page where the text is found, as already explained. Although the page where to find text function is added before web_reg_find.

Example: In the following example, the web_find function searches the index.html page for the term “Web Tours”.

web_url(“index.html”,

        “URL=http://127.0.0.1:1080/WebTours/index.html”, “TargetFrame=”,

        LAST );

web_find(“Web Tours”,

        “wait=not found”,

        “matchbox=yes”,

        “failed=abort”,

        “report=failure”,

        “repeat=no”,

        “what=John”,

        LAST );

Scroll to Top