MultiSelectComboBoxElement
Playwright element wrapper for<vaadin-multi-select-combo-box>. Provides helpers to open the overlay, filter items, select/deselect multiple items, and query selected chips.
Component Tag
vaadin-multi-select-combo-box
Implements
FocusableElementHasAriaLabelElementHasInputFieldElementHasThemeElementHasPlaceholderElementHasEnabledElementHasTooltipElementHasValidationPropertiesElementHasClearButtonElementHasAllowedCharPatternElement
Factory Methods
getByLabel (Page)
MultiSelectComboBoxElement by its label. Uses ARIA role COMBOBOX.
Page
required
The Playwright page
String
required
The accessible label of the field
MultiSelectComboBoxElement
getByLabel (Locator)
MultiSelectComboBoxElement by its label within a given scope.
Locator
required
The locator to search within
String
required
The accessible label of the field
MultiSelectComboBoxElement
Constructor
MultiSelectComboBoxElement
MultiSelectComboBoxElement.
Locator
required
The locator for the
<vaadin-multi-select-combo-box> elementSelection Methods
selectItem
String
required
Label of the item to select
deselectItem
String
required
Label of the item to deselect
selectItems
String...
required
Labels of the items to select
deselectItems
String...
required
Labels of the items to deselect
filterAndSelectItem
String
required
Text to type for filtering
String
required
Label of the item to select
Filter Methods
setFilter
pressSequentially to fire keyboard events that the component listens to for filtering.
String
required
The filter text
getFilter
Open/Close Methods
open
close
isOpened
true when the overlay is open
assertOpened
assertClosed
Value Methods
getValue
selectedItems property.
Returns: Comma-separated selected values, or empty string when nothing is selected
assertValue
String
Expected comma-separated value or empty string for no selection
Read-Only Methods
isReadOnly
true when read-only
assertReadOnly
assertNotReadOnly
Toggle Button Methods
getToggleButtonLocator
clickToggleButton
Overlay Item Methods
getOverlayItemCount
assertItemCount
int
required
Expected item count
Chip Methods
getChipLocators
getOverflowChipLocator
getSelectedItems
selectedItems property from the web component.
Returns: List of selected item labels
getSelectedItemCount
selectedItems property.
Returns: Number of selected items
assertSelectedItems
String...
required
Expected item labels
assertSelectedCount
int
required
Expected number of selected items
Component Query Methods
getOverlayItemComponent (by text)
@PlaywrightElement and have a public constructor accepting a single Locator parameter.
String
required
Text of the overlay item to search in
Class<T>
required
The element class (e.g.,
ButtonElement.class)getOverlayItemComponent (by index)
@PlaywrightElement and have a public constructor accepting a single Locator parameter.
int
required
0-based visible item index
Class<T>
required
The element class (e.g.,
ButtonElement.class)