public void toggle() {
        PrimeSelenium.executeScript(isOnchangeAjaxified(), getWidgetByIdScript() + ".toggle();");
    }
Toggles between its three states. (null, true, false)
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/TriStateCheckbox.java