[Webtest] Ajax DWR and pagination

Soula, William Soula, William" <wsoula@pointserve.com
Mon, 15 Sep 2008 08:01:35 -0500


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

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_93B3B6122B906D44BC7E8B8CEFB0DBBB18451F2CDESGPEXCHANGEpo_
Content-Type: text/html; charset="us-ascii"
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=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16705" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D694504512-15092008><FONT face=3DArial size=3D2>I have a =
webpage=20
that loads data using pagination.&nbsp; There is a drop down that is used t=
o=20
display the number of rows you want to see.&nbsp; If I use the IE developer=
=20
toolbar I can see that the id for the drop down is 'results' but when I try=
 to=20
attach to the drop down using webtest it is not found.&nbsp; I even tried j=
ust=20
verifying the xpath using xpath=3D"//input[@id=3D'results']" and=20
xpath=3D"//select[@id=3D'results']" and it can't find it.&nbsp; Has anyone =
had this=20
problem?&nbsp; Does anyone have any ideas?&nbsp; The code that inserts the=
=20
pagination is below:</FONT></SPAN></DIV>
<DIV><SPAN class=3D694504512-15092008><PRE id=3Dline378>//&lt;![CDATA[

jsInsert("/js/dynamic_list.js", function(){
setTimeout(function(){
replaceIcon("branchesTable_name", "asc");
regulateSort(document.getElementById("branchesTable"), true, "branchesTable=
_name", "asc");
}, 100);
});

//]]&gt;
</PRE></SPAN></DIV></BODY></HTML>

--_000_93B3B6122B906D44BC7E8B8CEFB0DBBB18451F2CDESGPEXCHANGEpo_--