Yep, the following worked fine. Much nicer!
Cheers, Paul.
<groovy>
step.context.xPathHelper.namespaceContext.addNamespace("ns2",
"http://www.atg.com/webservices")
</groovy>
<verifyXPath xpath="//ns2:logoutUserResponse"/>
Marc Guillemot wrote:
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.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest