When running Selenium tests using JS, I want to ensure that there are no active Ajax requests. While I can successfully extract the amount of active Ajax requests for jQuery and PrimeFaces, I am facing some issues with JSF.
String jsPF = "return PrimeFaces.ajax.Queue.isEmpty();";
String jsJQuery = "return jQuery.active != 0;";
I am wondering if there is a way to utilize JSF methods or pure JS to achieve this. Perhaps utilizing "jsf.ajax.addOnEvent()"
could be a solution, but I am still uncertain about it.