[Webtest] verifyXPath - dealing with xml namespaces

Marc Guillemot webtest@lists.canoo.com
Tue, 13 Jun 2006 23:40:07 -0700 (PDT)


Paul,

can you try following (still with head version of htmlunit and with a build
from this week or from last week):

<groovy>
step.context.getXPathHelper().namespaceContext.addNamespace("ns2",
"http://www.atg.com/webservices") 
</groovy>

this should make the namespace available for the whole duration of the test
what should allow simply:
<verifyXPath xpath="//ns2:logoutUserResponse"/>

Marc.
--
View this message in context: http://www.nabble.com/verifyXPath---dealing-with-xml-namespaces-t1777411.html#a4859803
Sent from the WebTest forum at Nabble.com.