Package com.vaadin.browserless.locator
Interface HasPlaceholderFilter
-
- All Implemented Interfaces:
public interface HasPlaceholderFilter<C extends Component, HasPlaceholder, SELF extends Locator<C, SELF>>Mixin for Locators whose target component implements HasPlaceholder. Exposes placeholder-based filter methods that would be meaningless on components without a placeholder, turning a call like
findButton().withPlaceholder("...")(Button is notHasPlaceholder) into a compile error rather than a silent no-op.- Since:
1.1
-
-
Method Summary
Modifier and Type Method Description SELFwithPlaceholder(String placeholder)Requires the matched component's placeholderto be exactly the given value.SELFwithPlaceholderContaining(String text)Requires the matched component's placeholderto contain the given text.-
-
Method Detail
-
withPlaceholder
SELF withPlaceholder(String placeholder)
Requires the matched component's
placeholderto be exactly the given value. Useful for toolbar / search fields that intentionally omit a stacked label and identify themselves to the user via placeholder text instead.
-
withPlaceholderContaining
SELF withPlaceholderContaining(String text)
Requires the matched component's
placeholderto contain the given text.
-
-
-
-