Interface HasLabel

All Superinterfaces:
HasPropertySettersGetters, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement
All Known Implementing Classes:
BigDecimalFieldElement, CheckboxElement, ComboBoxElement, DatePickerElement, DateTimePickerElement, EmailFieldElement, IntegerFieldElement, ListBoxElement, MultiSelectComboBoxElement, NumberFieldElement, PasswordFieldElement, SelectElement, TextAreaElement, TextFieldElement

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 Details

    • getLabel

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