Package com.vaadin.browserless.locator
Interface HasThemeFilter
-
- All Implemented Interfaces:
public interface HasThemeFilter<C extends Component, HasTheme, SELF extends Locator<C, SELF>>Mixin for Locators whose target component implements HasTheme. Exposes theme-based filter methods that would be meaningless on components without theme support, turning an inapplicable call into a compile error rather than a silent no-op.
- Since:
1.1
-
-
Method Summary
Modifier and Type Method Description SELFwithTheme(ThemeVariant variant)Requires the matched component to have the given theme variant set. SELFwithTheme(String theme)Requires the matched component to have the given theme set. SELFwithoutTheme(ThemeVariant variant)Requires the matched component to not have the given theme variant set. SELFwithoutTheme(String theme)Requires the matched component to not have the given theme set. -
-
Method Detail
-
withTheme
SELF withTheme(ThemeVariant variant)
Requires the matched component to have the given theme variant set. Prefer this over the raw-string withTheme so the IDE can autocomplete the variant and a typo becomes a compile error.
ui.findButton().withTheme(ButtonVariant.LUMO_PRIMARY).click();
-
withTheme
@Deprecated() SELF withTheme(String theme)
Requires the matched component to have the given theme set.
-
withoutTheme
SELF withoutTheme(ThemeVariant variant)
Requires the matched component to not have the given theme variant set. Prefer this over the raw-string withoutTheme for the same reasons as withTheme.
-
withoutTheme
@Deprecated() SELF withoutTheme(String theme)
Requires the matched component to not have the given theme set.
-
-
-
-