public static <T> T executeScript(boolean isAjaxified, String script, Object... args) {
        if (isAjaxified) {
            return guardAjax(script, args);
        }
        else {
            return executeScript(script, args);
        }
    }
Executes JavaScript in the browser and will wait if the request is an AJAX request.

@param isAjaxified true if this is an AJAX request, false if regular script
@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