Package com.vaadin.browserless.locator
Interface HasAriaLabelFilter
-
- All Implemented Interfaces:
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.- Since:
1.1
-
-
Method Summary
Modifier and Type Method Description SELFwithAriaLabel(String ariaLabel)Requires the matched component's aria-labelattribute to be exactly the given value.SELFwithAriaLabelContaining(String text)Requires the matched component's aria-labelattribute to contain the given text.-
-
Method Detail
-
withAriaLabel
SELF withAriaLabel(String ariaLabel)
Requires the matched component's
aria-labelattribute to be exactly the given value.
-
withAriaLabelContaining
SELF withAriaLabelContaining(String text)
Requires the matched component's
aria-labelattribute to contain the given text.
-
-
-
-