I want to check if all ajax requests have completed and only then interact with element on a web page. Hence I opened chrome browser's developer console. And after entering url in search bar and hitting ENTER key, in console I keep hitting $.active
multiple times and in results most of the time I can see returned value as 0
but some time as 1
I hit $.active
command with hand hence I am not able to see consistent result all the time. Is there any java script code which I can enter in console and after hitting it, $.active
command will be hit one by one till the number of times mentioned?