Interface HasAriaLabelFilter<C extends Component & HasAriaLabel,SELF extends Locator<C,SELF>>

Type Parameters:
C - the component type, bound to HasAriaLabel
SELF - the concrete locator subtype, used for fluent chaining
All Known Implementing Classes:
AnchorLocator, BigDecimalFieldLocator, ButtonLocator, CheckboxGroupLocator, CheckboxLocator, ComboBoxLocator, DatePickerLocator, DecimalSliderLocator, EmailFieldLocator, ImageLocator, InputLocator, IntegerFieldLocator, IntegerSliderLocator, ListBoxLocator, MultiSelectComboBoxLocator, MultiSelectListBoxLocator, NativeButtonLocator, NumberFieldLocator, PasswordFieldLocator, PopoverLocator, RadioButtonGroupLocator, RangeInputLocator, SelectLocator, TextAreaLocator, TextFieldLocator, TimePickerLocator

public interface HasAriaLabelFilter<C extends Component & HasAriaLabel,SELF extends Locator<C,SELF>>
Mixin for Locators whose target component implements HasAriaLabel. Exposes aria-label-based filter methods that would be meaningless on components that don't expose the attribute, turning an inapplicable call into a compile error rather than a silent no-op.
  • Method Summary

    Modifier and Type
    Method
    Description
    default SELF
    withAriaLabel(String ariaLabel)
    Requires the matched component's aria-label attribute to be exactly the given value.
    default SELF
    Requires the matched component's aria-label attribute to contain the given text.
  • Method Details

    • withAriaLabel

      default SELF withAriaLabel(String ariaLabel)
      Requires the matched component's aria-label attribute to be exactly the given value.
    • withAriaLabelContaining

      default SELF withAriaLabelContaining(String text)
      Requires the matched component's aria-label attribute to contain the given text.