[Webtest] Namespace prefixes in XPath
Caleandro
Caleandro" <kalosandros@katamail.com
Wed, 20 Dec 2006 12:12:23 +0100
Hi all,
Testing webservices responses with Webtest (R_1393) I need to verify an
element, with:
<verifyXPath xpath="//SOAP-ENV:Body" description="verify tag existence"/>
but got an exception like:
com.canoo.webtest.engine.StepExecutionException: Unexpected exception
caught: org.jaxen.UnresolvableException: Cannot resolve namespace prefix
'SOAP-ENV', Step: VerifyXPath at
D:\TestsRoot\AAGC\BatchTests\AAGC_WS_0001_VIC.xml:13: with
(description="verify tag existence", taskName="verifyXPath",
xpath="//SOAP-ENV:Body")
at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:463)
at com.canoo.webtest.steps.Step.execute(Step.java:139)
Any suggestion?
Thank to anyone for a reply.
Vito