[Webtest] Ajax DWR and pagination

Meng, Lily Meng, Lily" <lmeng@pointserve.com
Thu, 18 Sep 2008 11:24:57 -0500


--_000_93B3B6122B906D44BC7E8B8CEFB0DBBB184529EA47SGPEXCHANGEpo_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi Marta,

I get the same error, "no element found with xpath "//*[@id=3D'results']".
Any other ideas? Thank you!

~Lily

________________________________
From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] =
On Behalf Of Marta Ceprini
Sent: Wednesday, September 17, 2008 4:53 AM
To: webtest@lists.canoo.com; Soula, William
Subject: Re: [Webtest] Ajax DWR and pagination

Hi, try to use just //*[@id=3D'results'] as xpath...
Hope this help, regards.
2008/9/15 Soula, William <wsoula@pointserve.com<mailto:wsoula@pointserve.co=
m>>
I have a webpage that loads data using pagination.  There is a drop down th=
at is used to display the number of rows you want to see.  If I use the IE =
developer toolbar I can see that the id for the drop down is 'results' but =
when I try to attach to the drop down using webtest it is not found.  I eve=
n tried just verifying the xpath using xpath=3D"//input[@id=3D'results']" a=
nd xpath=3D"//select[@id=3D'results']" and it can't find it.  Has anyone ha=
d this problem?  Does anyone have any ideas?  The code that inserts the pag=
ination is below:

//<![CDATA[



jsInsert("/js/dynamic_list.js", function(){

setTimeout(function(){

replaceIcon("branchesTable_name", "asc");

regulateSort(document.getElementById("branchesTable"), true, "branchesTable=
_name", "asc");

}, 100);

});



//]]>


--_000_93B3B6122B906D44BC7E8B8CEFB0DBBB184529EA47SGPEXCHANGEpo_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
pre
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hi Marta,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I get the same error, &#8220;no elemen=
t
found with xpath &#8220;//*[@id=3D&#8217;results&#8217;]&#8221;. <o:p></o:p=
></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Any other ideas? Thank you!<o:p></o:p>=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>~Lily<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font siz=
e=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span style=3D'font-si=
ze:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] <b><sp=
an
style=3D'font-weight:bold'>On Behalf Of </span></b>Marta Ceprini<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, September 1=
7,
2008 4:53 AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> webtest@lists.canoo.com;
Soula, William<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: [Webtest] Ajax =
DWR
and pagination</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>Hi, try to use ju=
st </span></font><font
size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>//=
*[@id=3D'results']</span></font>
as xpath...<br>
Hope this help, regards.<o:p></o:p></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'>2008/9/15 Soula, William &lt;<a href=3D"mailto:wsoula@pointserve.co=
m">wsoula@pointserve.com</a>&gt;<o:p></o:p></span></font></p>

<div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>I have a webpage that loads data using pagination.&nbsp;=
 There
is a drop down that is used to display the number of rows you want to
see.&nbsp; If I use the IE developer toolbar I can see that the id for the =
drop
down is 'results' but when I try to attach to the drop down using webtest i=
t is
not found.&nbsp; I even tried just verifying the xpath using
xpath=3D&quot;//input[@id=3D'results']&quot; and
xpath=3D&quot;//select[@id=3D'results']&quot; and it can't find it.&nbsp; H=
as
anyone had this problem?&nbsp; Does anyone have any ideas?&nbsp; The code t=
hat
inserts the pagination is below:</span></font><o:p></o:p></p>

</div>

<div><pre><font size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0=
pt'>//&lt;![CDATA[<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p>&nbsp;<=
/o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>jsInsert(&qu=
ot;/js/dynamic_list.js&quot;, function(){<o:p></o:p></span></font></pre><pr=
e><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>setTimeout(f=
unction(){<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>replaceIcon(=
&quot;branchesTable_name&quot;, &quot;asc&quot;);<o:p></o:p></span></font><=
/pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>regulateSort=
(document.getElementById(&quot;branchesTable&quot;), true, &quot;branchesTa=
ble_name&quot;, &quot;asc&quot;);<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>}, 100);<o:p=
></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>});<o:p></o:=
p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p>&nbsp;<=
/o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>//]]&gt;<o:p=
></o:p></span></font></pre></div>

</div>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

</body>

</html>

--_000_93B3B6122B906D44BC7E8B8CEFB0DBBB184529EA47SGPEXCHANGEpo_--