Package com.vaadin.browserless.locator
Interface HasLabelFilter
-
- All Implemented Interfaces:
public interface HasLabelFilter<C extends Component, HasLabel, SELF extends Locator<C, SELF>>Mixin for Locators whose target component implements HasLabel. Exposes label-based filter methods that would be meaningless on components without a label, turning a call like
findButton().withLabel("Save")(Button is com.vaadin.flow.component.HasText, notHasLabel) into a compile error rather than a silent no-op.- Since:
1.1
-
-
Method Summary
-
-
Method Detail
-
withLabel
SELF withLabel(String label)
Requires the matched component's
labelproperty to be exactly the given value. Use this for form fields where the end user identifies a field by its label.
-
withLabelContaining
SELF withLabelContaining(String text)
Requires the matched component's
labelproperty to contain the given text.
-
-
-
-