[Webtest] xpath problem

Marc Guillemot webtest@lists.canoo.com
Wed, 05 Nov 2003 12:34:41 +0100


Hi Forouhar,

I would say that your test is correct. Could it be that your page has an empty 
title?
You can use verifytitle too: http://webtest.canoo.com/webtest/manual/syntax.html#8

Marc.

Pourki, Forouhar wrote:
> Hi there!
> 
> i use the simple xpath example in
> http://webtest.canoo.com/webtest/manual/syntax.html#16
> 
> namely:
> 
> <verifyxpath stepid="simple match with value"
>                     xpath="/html/head/title"
>                     text=" Projekt "/>
> 
> but i get the error:
> 
> com.canoo.webtest.engine.StepFailedException: xpath test: /html/head/title evaluates to: , expected value is: Projekt , Step: VerifyXPath(id="simple match", text= Projekt , regex=false, xpath="/html/head/title) 
> 
> What can cause this?
> my confi & login are the same as other tests.
> 
> Thanks for any help.
>    Forouhar
> 
> 
> 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>