[Webtest] Problem with storexpath

Shlomit Becker webtest@lists.canoo.com
Wed, 7 Apr 2004 14:17:32 +0300


This is a multi-part message in MIME format.

------_=_NextPart_001_01C41C91.EB95C735
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

I have the following:

<verifyxpath
        stepid=3D"Verify Discovery link"
        xpath=3D"//a[@href=3D'/webapp/discovery.jsp']"/>  =20

<storexpath
        stepid=3D"Store Discovery link"
        xpath=3D"//a[@href=3D'/webapp/discovery.jsp']"
        property=3D"sdLink"/>

The "verifyxpath" works fine, but the "storexpath" step fails, with the
following message:

BUILD FAILED
file:C:/Canoo/doc/samples/TestBasic.xml:7:
Test step storexpath named "Verify Discovery link" failed with message
"No match for xpath expression <//a[@href=3D'/webapp/discovery.jsp']>"

Any idea why the storexpath is failing here when verifyxpath passes for
the same path?

Thanks,
Shlomit=20


------_=_NextPart_001_01C41C91.EB95C735
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR></HEAD>
<BODY><!-- Converted from text/plain format -->
<P><FONT face=3DArial><FONT size=3D2>I have the=20
following:<BR><BR>&lt;verifyxpath<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
stepid=3D"Verify Discovery =
link"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
xpath=3D"//a[@href=3D'/webapp/discovery.jsp']"/&gt;&nbsp;&nbsp;&nbsp;<BR>=
<BR>&lt;storexpath<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
stepid=3D"Store Discovery=20
link"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xpath=3D"//a[@hr=
ef=3D'/webapp/discovery.jsp']"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
property=3D"sdLink"/&gt;<BR><BR>The "verifyxpath" works fine, but the =
"storexpath"=20
step fails, with the following message:<BR><BR>BUILD=20
FAILED<BR>file:C:/Canoo/doc/samples/TestBasic.xml:7:<BR>Test step =
storexpath=20
named "Verify Discovery link" failed with message<BR>"No match for xpath =

expression &lt;//a[@href=3D'/webapp/discovery.jsp']&gt;"<BR><BR>Any idea =
why the=20
storexpath is failing here when verifyxpath passes for the same=20
path?<BR><BR>Thanks,<BR>Shlomit</FONT> </FONT></P></BODY></HTML>
=00
------_=_NextPart_001_01C41C91.EB95C735--