Hi,
I need to know there is or not active Ajax request at the current moment.
The active request I mean the request which has not been back yet from a backend?
Is there a method to do that?
Thanks
3 Answers, 1 is accepted
0
Elena
Telerik team
answered on 18 Oct 2017, 03:19 PM
Hello Ivan,
Thank you for reaching us out.
There isn't exactly a method that will check if currently there is an active ajax call. Though you could use the Browser.WaitForAjax Method which will hold the execution until the active request is finished.
Manager.ActiveBrowser.WiatForAjax(timeout);
I hope this will be helpful to you and you will manage to implement it for your scenario. Thanks!
I know about Wait For Ajax but I need a method waits for an active ajax call is sent, not finished.
0
Elena
Telerik team
answered on 23 Oct 2017, 12:05 PM
Hi Ivan,
Thanks for getting back. Unfortunately I have to admit there is no such method provided by Test Studio.
Though I have searched the web and found a forum thread which might contain what you need to handle the scenario. Please find it here and double check the second reply of Cody Gibson. I hope this will something you could apply that within your code.