public String getLabel() {
        WebElement label = findElement(By.className("ui-button-text"));
        if (PrimeSelenium.isElementDisplayed(label)) {
            return label.getText();
        }
        return label.getDomProperty("textContent");
    }
Gets the current label on the button.

@return the label text of the button
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/SelectBooleanButton.java