public boolean getValue() {
        WebElement input = getInput();
        return "true".equals(input.getDomProperty("checked")) || "true".equals(input.getDomAttribute("checked"));
    }
Gets the value of the toggle component.

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