assertTextPresentXML

What is it?

Verifies that the specified text pattern appears somewhere in the XML document (as opposed to the standard assertTextPresent, which verifies whether or not text appears between HTML <body/> tags).

Licence

Apache License, V2. This code was developed by Chris Arnold for desmondo.com.

How to add it to selenium:

1. Download the attachment and append its contents to your 'user-extensions.js' file.

Example code:

<?xml version="1.0" encoding="UTF-8"?>
<result>
    <userInRole>true</userInRole>
</result>
assertTextPresentXML <userInRole>true</userInRole>  
verifyTextPresentXML <userInRole>true</userInRole>  
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.