I want to verify that there is a text string in the HTML source after the webserver and our proxy has had its way with that very same source. I know it will not be the same as the author created it, cuz the proxy will insert some cookies. It is the value of the cookie I want to verify. Here is what I have found to work with so far:
OK, the code runs and there are no errors or warnings.
Next thing I need to do (here is where I am stumbling around) is verify the string between the left and right borders. I know what it should be, so is there a simple boolean function to do compares?
You may also want to check out web_reg_find(). Like web_find(), it scans a page for text you specify, but it is initialized prior to the page download, so the text can be scanned as it is downloaded, not after. Mercury says it is more efficient than web_find. Also, in 7.x (at least) it works with http script, not just context sensitive scripts, like web_find. It may work in http mode in 6.5, but I haven't tried it.
Hey BBondi, I see that you are trying to verify the text which is generated dynamically which you are capturing with the web_create_html_param() and web_reg_save_param(). And I thought how will you compare the dynamic data i mean you should know the value with what you can compare with right? So as you say that you know what to compare with, you can use
and save the parameter value to a variable and then use
you can also use lr_eval_string to compare the data. Thanks.