Package com.vaadin.browserless.locator
Interface HasAriaLabelFilter<C extends Component & HasAriaLabel,SELF extends Locator<C,SELF>>
- Type Parameters:
C- the component type, bound toHasAriaLabelSELF- 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 TypeMethodDescriptiondefault SELFwithAriaLabel(String ariaLabel) Requires the matched component'saria-labelattribute to be exactly the given value.default SELFRequires the matched component'saria-labelattribute to contain the given text.
-
Method Details
-
withAriaLabel
Requires the matched component'saria-labelattribute to be exactly the given value. -
withAriaLabelContaining
Requires the matched component'saria-labelattribute to contain the given text.
-