Package com.vaadin.browserless.locator
Interface HasThemeFilter<C extends Component & HasTheme,SELF extends Locator<C,SELF>>
- Type Parameters:
C- the component type, bound toHasThemeSELF- the concrete locator subtype, used for fluent chaining
- All Known Implementing Classes:
BigDecimalFieldLocator,BreadcrumbsLocator,ButtonLocator,ChartLocator,CheckboxGroupLocator,CheckboxLocator,ComboBoxLocator,DatePickerLocator,DateTimePickerLocator,DetailsLocator,DialogLocator,EmailFieldLocator,GridLocator,IntegerFieldLocator,MenuBarLocator,MessageInputLocator,MultiSelectComboBoxLocator,NotificationLocator,NumberFieldLocator,PasswordFieldLocator,PopoverLocator,RadioButtonGroupLocator,SelectLocator,SideNavLocator,TabSheetLocator,TabsLocator,TextAreaLocator,TextFieldLocator,TimePickerLocator,UploadLocator,VirtualListLocator
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 TypeMethodDescriptiondefault SELFwithoutTheme(ThemeVariant variant) Requires the matched component to not have the given theme variant set.default SELFwithoutTheme(String theme) Deprecated.default SELFwithTheme(ThemeVariant variant) Requires the matched component to have the given theme variant set.default SELFDeprecated.usewithTheme(ThemeVariant)with the component's typed variant enum where possible.
-
Method Details
-
withTheme
Deprecated.usewithTheme(ThemeVariant)with the component's typed variant enum where possible. This raw-string overload remains for themes not surfaced through aThemeVariantenum.Requires the matched component to have the given theme set. -
withoutTheme
Deprecated.usewithoutTheme(ThemeVariant)with the component's typed variant enum where possible.Requires the matched component to not have the given theme set.
withoutTheme(ThemeVariant)with the component's typed variant enum where possible.