AW: [Webtest] Xpath expression

Michael Habbert Michael Habbert" <Michael.Habbert@netpioneer.de
Mon, 27 Nov 2006 08:59:42 +0100


Hi Marc,


[...]
> Hallo Michael,
>=20
> can you be more precise?

I don't know how;-).=20
=20
> You can use some xpath exploring tool to play with your xpath=20
> expression=20
> (for instance with the xpath explorer of WebTestRecorder) to=20
> be sure to=20
> use the right one (take care that there are some small=20
> diferences with=20
> WebTest).
[...]
> > I'm trying to store the value of the second td-tag using=20
> storeXPath, but by now I found no way to access the=20
> "wp-01023" value of the td-tag. The Xpath function text() is=20
> obviously not working. Is there any workaround?
> >=20
> > <tr>
> > <td class=3D"tabelle" width=3D"250">ChangeRequest-Nummer</td>        =
=20
> > <td class=3D"tabelle" width=3D"500">wp-01023</td>        =20
> > </tr>

Thanks for the advice, I examined the "xpath explorer" and he showed me:
/some/path/to/element/text() or string(/some/path/to/element/) should
give me the enclosing value of the td-tag (for me: wp-01023).=20
This was not working in Webtest <storeXPath .../>. And I found no way to
extract the inside value of the td-tag in webtest.=20
Hopefully I'm clear enough?

Don't talk over a bug, mybe a missing feature.
[...]

Thanks in advance
------------------------------------------------------------------------
Michael Habbert

Senior Developer
Netpioneer GmbH, Beiertheimer Allee 18, D-76137 Karlsruhe

Tel: 0721 / 920 60 21
Fax: 0721 / 920 60 30
E-Mail: michael.habbert@netpioneer.de
www: http://www.netpioneer.de