Interface HasLabel

  • All Superinterfaces:
    HasPropertySettersGetters, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement

    public interface HasLabel
    extends HasPropertySettersGetters
    Implement by elements which support a label, i.e. text shown typically inside (when field is empty) or above the field (when the field has a value).
    • Method Detail

      • getLabel

        default String getLabel()
        Gets the label for the element.
        Returns:
        the label or an empty string if there is no label