public WebElement getAssignedLabel() {
        return getWebDriver().findElement(By.cssSelector("label[for='" + getInput().getDomAttribute("id") + "']"));
    }
The HTML label assigned to this input.

@return the {@link WebElement} representing the label.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/base/AbstractInputComponent.java