public static <T> T guardAjax(String script, Object... args) {
        return Guard.ajax(script, args);
    }
Guard the widget script which fires an AJAX request and means wait until it has completed before returning.

@param script the script to execute
@param args any arguments to the script
@param <T> the return type
@return the result of running the JavaScript
primefaces-selenium/primefaces-selenium-core/src/main/java/org/primefaces/selenium/PrimeSelenium.java