Class MultiSelectComboBoxLocator<Y>
java.lang.Object
com.vaadin.browserless.locator.Locator<MultiSelectComboBox<Y>,MultiSelectComboBoxLocator<Y>>
com.vaadin.flow.component.combobox.MultiSelectComboBoxLocator<Y>
- All Implemented Interfaces:
Clickable<MultiSelectComboBox<Y>>,HasAriaLabelFilter<MultiSelectComboBox<Y>,,MultiSelectComboBoxLocator<Y>> HasLabelFilter<MultiSelectComboBox<Y>,,MultiSelectComboBoxLocator<Y>> HasThemeFilter<MultiSelectComboBox<Y>,,MultiSelectComboBoxLocator<Y>> HasValueFilter<MultiSelectComboBox<Y>,Set<Y>, MultiSelectComboBoxLocator<Y>>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class MultiSelectComboBoxLocator<Y>
extends Locator<MultiSelectComboBox<Y>,MultiSelectComboBoxLocator<Y>>
implements Clickable<MultiSelectComboBox<Y>>, HasLabelFilter<MultiSelectComboBox<Y>,MultiSelectComboBoxLocator<Y>>, HasAriaLabelFilter<MultiSelectComboBox<Y>,MultiSelectComboBoxLocator<Y>>, HasValueFilter<MultiSelectComboBox<Y>,Set<Y>,MultiSelectComboBoxLocator<Y>>, HasThemeFilter<MultiSelectComboBox<Y>,MultiSelectComboBoxLocator<Y>>
Generated locator for
MultiSelectComboBox, derived from
MultiSelectComboBoxTester. Filter steps are inherited from
Locator; action methods delegate to a fresh tester
around the resolved component, so behavioral changes belong on the
tester, not here.-
Constructor Summary
ConstructorsConstructorDescriptionMultiSelectComboBoxLocator(MultiSelectComboBox<Y> component) MultiSelectComboBoxLocator(Class<Y> yType) -
Method Summary
Modifier and TypeMethodDescriptionvoidEnsures the component is in a usable state before interaction.Gets the component being tested.Get the currently selected item.Get the actual items for the dropdown as a List.Get dropdown suggestions as String representations sent to the client.voidselectItem(String... selection) Select items by client string representation.voidSimulate writing a filter to the combobox.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAttribute, withAttribute, withClassName, withCondition, withId, withoutAttribute, withoutAttribute, withoutClassNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.browserless.Clickable
click, click, click, middleClick, middleClick, rightClick, rightClickMethods inherited from interface com.vaadin.browserless.locator.HasAriaLabelFilter
withAriaLabel, withAriaLabelContainingMethods inherited from interface com.vaadin.browserless.locator.HasLabelFilter
withLabel, withLabelContainingMethods inherited from interface com.vaadin.browserless.locator.HasThemeFilter
withoutTheme, withThemeMethods inherited from interface com.vaadin.browserless.locator.HasValueFilter
withValue
-
Constructor Details
-
MultiSelectComboBoxLocator
-
MultiSelectComboBoxLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<Y>- Returns:
- the component under test
-
ensureComponentIsUsable
public void ensureComponentIsUsable()Description copied from interface:ClickableEnsures the component is in a usable state before interaction.- Specified by:
ensureComponentIsUsablein interfaceClickable<Y>
-
setFilter
Simulate writing a filter to the combobox. UsegetSuggestions()to get the string values show in the dropdown orgetSuggestionItems()to get the actual items in the suggestion. Javadoc copied fromMultiSelectComboBoxTester.setFilter(java.lang.String).- Parameters:
filter- string to use for filtering
-
selectItem
Select items by client string representation. Javadoc copied fromMultiSelectComboBoxTester.selectItem(java.lang.String[]).- Parameters:
selection- item representations as strings
-
getSelected
Get the currently selected item. Javadoc copied fromMultiSelectComboBoxTester.getSelected().- Returns:
- current selection
-
getSuggestions
Get dropdown suggestions as String representations sent to the client. Any filter that is set is taken into account. Javadoc copied fromMultiSelectComboBoxTester.getSuggestions().- Returns:
- List of item representation strings
-
getSuggestionItems
Get the actual items for the dropdown as a List. Any filter that is set is taken into account. Javadoc copied fromMultiSelectComboBoxTester.getSuggestionItems().- Returns:
- List of items
-