[Webtest] Xpaths obtained from X-path explorer are not recognised by canoo
Schütz Tomi (KSFC 413)
webtest@lists.canoo.com
Mon, 14 Aug 2006 15:44:40 +0200
This is a multi-part message in MIME format.
------_=_NextPart_001_01C6BFA7.CA660B7C
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi
=20
I didn't have any problems with long XPath expressions so far. If this =
is the case in your environment, you could try to address the image by
=20
//img
=20
and finally describe it based on some 'class' or 'id' attributes as in
=20
//img[@id=3D'footer']
=20
or
=20
//img[@class=3D'someclass']
=20
Maybe this gives you some ideas.
=20
Best regards,
Tomi
=20
=20
________________________________
From: webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Prasanna
Sent: Monday, August 14, 2006 3:33 PM
To: webtest@lists.canoo.com
Subject: [Webtest] Xpaths obtained from X-path explorer are not =
recognised by canoo
Hi
I am using xpath explorer to find xpath and from xpath explorerI get =
correct xpath as
//form[@id=3D'Form1']/table[2]/tr[2]/td/table/tr/td[2]/table[4]/tr/td[1]/=
table/tr/td[2]/table/tr[4]/td/table/tr/td/table/tr/td[2]/img
=20
But it seems if xpath is lengthy Canoo fails to recoginse it
and gives error
xpath not found
=20
But My xpath is correct as per xpath explorer anyone knows solution for =
better xpath ??
Help me please
------_=_NextPart_001_01C6BFA7.CA660B7C
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Hi</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>I didn't have any problems with long XPath =
expressions so=20
far. If this is the case in your environment, =
you </FONT></SPAN><SPAN=20
class=3D973074113-14082006><FONT face=3DArial color=3D#0000ff =
size=3D2>could try to=20
address the image by</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>//img</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>and finally describe it based on some 'class' =
or 'id'=20
attributes as in</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>//img[@id=3D'footer']</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>or</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>//img[@class=3D'someclass']</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Maybe this gives you some =
ideas.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Best regards,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Tomi</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D973074113-14082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Dde dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> webtest-admin@lists.canoo.com=20
[mailto:webtest-admin@lists.canoo.com] <B>On Behalf Of=20
</B>Prasanna<BR><B>Sent:</B> Monday, August 14, 2006 3:33 =
PM<BR><B>To:</B>=20
webtest@lists.canoo.com<BR><B>Subject:</B> [Webtest] Xpaths obtained =
from X-path=20
explorer are not recognised by canoo<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am using xpath explorer to find xpath =
and from=20
xpath explorerI get correct xpath as</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>//form[@id=3D'Form1']/table[2]/tr[2]/td/table/tr/td[2]/table[4]/=
tr/td[1]/table/tr/td[2]/table/tr[4]/td/table/tr/td/table/tr/td[2]/img</FO=
NT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>But it seems if xpath is lengthy Canoo =
fails to=20
recoginse it</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and gives error</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>xpath not found</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>But My xpath is correct as per xpath =
explorer=20
anyone knows solution for better xpath ??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Help me =
please</FONT></DIV></BODY></HTML>
------_=_NextPart_001_01C6BFA7.CA660B7C--