Syncronization is a common problem with UI automation and nearly all modern web designs that do a lot of client side rendering or AJAX work. With JQuery I was able to watch the .active
property (number of active requests), and if it went to 0 and stayed there a little while, it was usually a safe bet the page was finished updating.
Is there something similar with React that can be used to tell that there are no open AJAX calls, or that the code has finished updating page elements (or 'patching' the virtual DOM to the page DOM)? Or some other way to tell that the page is in a state where automation simulating user actions can interact with it without fear of the page updating and getting errors such as 'element not found'.