Example: web.find
This example shows the user of find to confirm that the phrase "You may now add" is in the retrieved web page.
try
{
web.url("localhost",
"URL=http://localhost/",
new String[]{
"Resource=0",
"RecContentType=text/html",
"Mode=HTML",
"LAST"
});
web.find("Find String",
new String [] {
"expect=found",
"matchcase=yes",
"onfailure=abort",
"report=failure",
"repeat=no",
"what=You may now add"},
new String [] {"LAST"}
);
}
catch (Exception e) {}