Validation

Adding a searchstring

Search strings allows scripts to verify that a page has successfully loaded by searching that page for some specific text. If this text does not appear in the page, the script will error.

To add a searchstring, highlight the text you want to search for in the browser and right click on that text. A menu like following will appear:



Click on 'Add Search String' and it will be added to your script

Adding an errorstring

Error strings allow scripts to verify that a page is an error page. For example, if a default error page is displayed because there are errors with your server, scripts can look for some text and error if that text is found.

To add errorstrings, repeat the steps for 'Adding a searchstring' but click 'Add Error String' instead.

Verifying that an image has loaded

To verify that an image has loaded, immediate following a step (after endstep in the script) add the following

verifyimage(how, what)


Where 'how' is the attribute you are using to identify the image (usually :src, :index, :id, :name, etc) and what is the value of the attribute.