[Webtest] problems with verifyxpath

Dierk Koenig webtest@lists.canoo.com
Mon, 3 May 2004 12:08:22 +0200


it seems, your page cannot be parsed such that the dom contains
anchors. Maybe the html is not valid.
Try to use an html validator like the ones you'll find on
http://webtest.canoo.com/manual/troubleshooting.html#Annotated%20References
and resolve its findings.

cheers
Mittie

comments inline

> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Massimiliano Mauri
> Sent: Montag, 26. April 2004 9:00
> To: webtest@lists.canoo.com
> Subject: [Webtest] problems with verifyxpath
..
> This steps seems not work. 
> For example, searching in the page a link with the step 
> <verifyxpath stepid="verify xpath 1" xpath="//a"/> canoo web test 
> get a failure message (com.canoo.webtest.engine.StepFailedException).

> My first question is: this step search an <a> tag in the page 
> HTML with label "null"? why?

This is just a log message that the label is not explicitely set.

> The page HTML may be a simple HTML or have to be a XHTML?

valid HTML is enough.

> I have another question: <verifyxpath> supports XSLfunctions like 
> count(), text()...?

Yes.