[Webtest] Ajax DWR and pagination

Marta Ceprini Marta Ceprini" <damtourist@gmail.com
Wed, 17 Sep 2008 11:52:42 +0200


------=_Part_18646_25480463.1221645162394
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi, try to use just //*[@id='results'] as xpath...
Hope this help, regards.

2008/9/15 Soula, William <wsoula@pointserve.com>

>  I have a webpage that loads data using pagination.  There is a drop down
> that 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 even
> tried just verifying the xpath using xpath="//input[@id='results']" and
> xpath="//select[@id='results']" and it can't find it.  Has anyone had this
> problem?  Does anyone have any ideas?  The code that inserts the pagination
> is below:
>
> //<![CDATA[
>
> jsInsert("/js/dynamic_list.js", function(){
> setTimeout(function(){
> replaceIcon("branchesTable_name", "asc");
> regulateSort(document.getElementById("branchesTable"), true, "branchesTable_name", "asc");
> }, 100);
> });
>
> //]]>
>
>

------=_Part_18646_25480463.1221645162394
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">Hi, try to use just <span><font size="2" face="Arial">//*[@id=&#39;results&#39;]</font></span> as xpath...<br>Hope this help, regards.<br><br><div class="gmail_quote">2008/9/15 Soula, William <span dir="ltr">&lt;<a href="mailto:wsoula@pointserve.com">wsoula@pointserve.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<div><span><font size="2" face="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 &#39;results&#39; but when I try to 
attach to the drop down using webtest it is not found.&nbsp; I even tried just 
verifying the xpath using xpath=&quot;//input[@id=&#39;results&#39;]&quot; and 
xpath=&quot;//select[@id=&#39;results&#39;]&quot; and it can&#39;t find it.&nbsp; Has anyone had this 
problem?&nbsp; Does anyone have any ideas?&nbsp; The code that inserts the 
pagination is below:</font></span></div>
<div><span><pre>//&lt;![CDATA[

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

//]]&gt;
</pre></span></div></div>
</blockquote></div><br></div>

------=_Part_18646_25480463.1221645162394--