Interface HasHelper

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

public interface HasHelper extends HasPropertySettersGetters, HasElementQuery
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

    • getHelperText

      default String getHelperText()
      Gets the helper text for the element.
      Returns:
      the label or an empty string if there is no helper text
    • getHelperComponent

      default TestBenchElement getHelperComponent()
      Gets the slotted helper component for the element.
      Returns:
      the slotted component or null if there is no component