public String getSelectedLabel() {
        WebElement label = getActiveOption().findElement(By.className("ui-button-text"));
        if (PrimeSelenium.isElementDisplayed(label)) {
            return label.getText();
        }
        return label.getDomProperty("textContent");
    }
Component wrapper for the PrimeFaces {@code p:selectOneButton}.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/SelectOneButton.java