Dashboard > Selenium > ... > Contributed User-Extensions > assertTextPresentXML
Selenium Log In View a printable version of the current page.
assertTextPresentXML
Added by Sugar Bear, last edited by Sugar Bear on Jul 30, 2007  (view change)
Labels: 
(None)

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>  

Site running on a free Atlassian Confluence Community License granted to OpenQA. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.6 Build:#812 Aug 06, 2007) - Bug/feature request - Contact Administrators