Simply want to check that ajax is no longer executing, but there\'s not much in terms of documentation for this.
Closest answer I found is: phpwebdriver selenium wait for
If you are doing AJAX requests using jQuery, you can use this:
$driver->wait()->until( function ($driver) { return $driver->executeScript('return jQuery.active === 0;'); } );