[Webtest] Problem with storexpath
Marc Guillemot
webtest@lists.canoo.com
Thu, 08 Apr 2004 18:47:27 +0200
//a[@href='/webapp/discovery.jsp'] evaluates to a node what can't be store. What do you want to store, the text of the
link? Then use //a[@href='/webapp/discovery.jsp']/text()
Marc.
Shlomit Becker wrote:
> I have the following:
>
> <verifyxpath
> stepid="Verify Discovery link"
> xpath="//a[@href='/webapp/discovery.jsp']"/>
>
> <storexpath
> stepid="Store Discovery link"
> xpath="//a[@href='/webapp/discovery.jsp']"
> property="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='/webapp/discovery.jsp']>"
>
> Any idea why the storexpath is failing here when verifyxpath passes for
> the same path?
>
> Thanks,
> Shlomit
>