I have tried multiple options like jQuery.active, $ active and window.openHTTPs but are returning no pending requests in case of pending xhr request.
So is there a way using JavaScript to identify a total number of pending xhr request.
In browser tool I can see that xhr request is generated by dojo.js, need a generic JavaScript way to get number of pending xhr requests
Basically, I want to execute a JavaScript using Selenium which will wait till all pending requests became 0