Wait for all AJAX requests to complete
Posted: Thu Feb 16, 2012 9:34 am
Hi,
Please tell is there any tools in Ranorex API to wait for all AJAX requests on the web page to complete? Does method .WaitForDocumentLoaded() (http://www.ranorex.com/Documentation/Ra ... aded_1.htm) wait till all AJAX requests on the page are completed?
I perform testing of web page which has some controls updated with AJAX requst after click on other controls. I need to perform validation of controls that are dynamically changed with AJAX and for that I need to know when AJAX request is completed.
Please advice which approach is better to wait till updating of page's controls with AJAX is completed in order to start validation only after controls are completely loaded? In first place it is interesting to me wheter any way is available to identify that all AJAX requests on web page are completed - to be sure that all controls are fully updated.
Now to identify moment when it is ok to start validation I use wait till certain properties of AJAX-updated-controls are changed.
Could you please also recommend any approach to identify that Java applet on Web page has completed performing its activities and closed all connection to remote servers at certain moment.
Thanks.
Regards.
Andrii Kalytiiuk
Please tell is there any tools in Ranorex API to wait for all AJAX requests on the web page to complete? Does method .WaitForDocumentLoaded() (http://www.ranorex.com/Documentation/Ra ... aded_1.htm) wait till all AJAX requests on the page are completed?
I perform testing of web page which has some controls updated with AJAX requst after click on other controls. I need to perform validation of controls that are dynamically changed with AJAX and for that I need to know when AJAX request is completed.
Please advice which approach is better to wait till updating of page's controls with AJAX is completed in order to start validation only after controls are completely loaded? In first place it is interesting to me wheter any way is available to identify that all AJAX requests on web page are completed - to be sure that all controls are fully updated.
Now to identify moment when it is ok to start validation I use wait till certain properties of AJAX-updated-controls are changed.
Could you please also recommend any approach to identify that Java applet on Web page has completed performing its activities and closed all connection to remote servers at certain moment.
Thanks.
Regards.
Andrii Kalytiiuk