URL test offers "use expression" mode to search something in the returned page. Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#url
=======================
Mode
This option determines condition to check. Choose one of the available modes:
-
should contain - HostMonitor will set "Bad contents" status when page does not contain specified string
-
should not contain - HostMonitor will set "Bad contents" status when page contains specified string
-
use expression - HostMonitor will consider the string as Boolean (logical) expression, evaluate expression using data received from the server, and set "Bad contents" status when retrieved page does not satisfy the required conditions.
For example: if you define expression like "'No errors' and not ('Error' or 'Warning')", then HostMonitor will mark test as "Host is alive" when retrieved page contains string 'No error' and does not contain either 'Error' or 'Warning'
Expression
Enter a string of text to check the returned page. Remember that HTML tags are part of a document, so include the HTML tags if they are part of the text you are searching for (for example, "<B>Hello</B> World").
If you chose "use expression" mode, you may use expressions like "("Total" and "End Of Page") and not ('Error' or 'Warning')". In this case, a test will have a "Host is alive" status when monitor can receive specified page and this page contains both strings "Total" and "End Of Page", and doesn't contain either strings "Error" or "Warning". In the expression you may use strings (must be concluded in quotes (') or in double quotes (")); round brackets; logical operators "and", "or", "not".
=======================
So, you may try expression like: "("<ul>" and "<li>")". However, such method may not work for you if returned document contains several <li> and <ul> tags.
Does it suit your needs?
Regards,
Max