AW: [Webtest] xpath problem

Pourki, Forouhar webtest@lists.canoo.com
Wed, 5 Nov 2003 17:04:31 +0100


Hi Marc,
the title is "Projekt". And verifytitle works fine.
The proble is just with xpath.
many Thanks.
=20

-----Urspr=FCngliche Nachricht-----
Von: Marc Guillemot [mailto:mguillemot@yahoo.fr]
Gesendet am: Mittwoch, 5. November 2003 12:35
An: webtest@lists.canoo.com
Betreff: Re: [Webtest] xpath problem

Hi Forouhar,

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

Marc.

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


_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest