public void setValue(boolean value) {
        if (getValue() != value) {
            click();
        }
    }
Set the value of the the toggle component.

@param value true for checked, false for unchecked
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/base/AbstractToggleComponent.java