Ajax DWR and pagination

View: New views
3 Messages — Rating Filter:   Alert me  

Ajax DWR and pagination

by WSoula :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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);
});

//]]>

Re: Ajax DWR and pagination

by Marta Ceprini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

2008/9/15 Soula, William <wsoula@...>
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);
});

//]]>


RE: Ajax DWR and pagination

by blahbox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Marta,

 

I get the same error, “no element found with xpath “//*[@id=’results’]”.

Any other ideas? Thank you!

 

~Lily

 


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

 

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

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

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);
});
 
//]]>

 

LightInTheBox - Buy quality products at wholesale price!