Class MultiSelectListBoxLocator<V>
java.lang.Object
com.vaadin.browserless.locator.Locator<MultiSelectListBox<V>,MultiSelectListBoxLocator<V>>
com.vaadin.flow.component.listbox.MultiSelectListBoxLocator<V>
- All Implemented Interfaces:
Clickable<MultiSelectListBox<V>>,HasAriaLabelFilter<MultiSelectListBox<V>,,MultiSelectListBoxLocator<V>> HasValueFilter<MultiSelectListBox<V>,Set<V>, MultiSelectListBoxLocator<V>>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class MultiSelectListBoxLocator<V>
extends Locator<MultiSelectListBox<V>,MultiSelectListBoxLocator<V>>
implements Clickable<MultiSelectListBox<V>>, HasAriaLabelFilter<MultiSelectListBox<V>,MultiSelectListBoxLocator<V>>, HasValueFilter<MultiSelectListBox<V>,Set<V>,MultiSelectListBoxLocator<V>>
Generated locator for
MultiSelectListBox, derived from
MultiSelectListBoxTester. 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
ConstructorsConstructorDescriptionMultiSelectListBoxLocator(MultiSelectListBox<V> component) MultiSelectListBoxLocator(Class<V> vType) -
Method Summary
Modifier and TypeMethodDescriptionvoidClear all selected items from the component.voiddeselectItems(String... selection) Deselect item(s) by client string representation.voidEnsures the component is in a usable state before interaction.Gets the component being tested.Get the currently selected items.Get the actual items for the dropdown as a List.Get available items as String representations sent to the client.voidselectItems(String... selection) Select item(s) by client string representation.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.HasValueFilter
withValue
-
Constructor Details
-
MultiSelectListBoxLocator
-
MultiSelectListBoxLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<V>- 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<V>
-
getSelected
Get the currently selected items. Javadoc copied fromMultiSelectListBoxTester.getSelected().- Returns:
- current selection
-
selectItems
Select item(s) by client string representation. Javadoc copied fromMultiSelectListBoxTester.selectItems(java.lang.String[]).- Parameters:
selection- item representation string, not null
-
deselectItems
Deselect item(s) by client string representation. Javadoc copied fromMultiSelectListBoxTester.deselectItems(java.lang.String[]).- Parameters:
selection- item representation string, not null- Throws:
IllegalArgumentException- if selection contained item not available for selection
-
clearSelection
public void clearSelection()Clear all selected items from the component. Javadoc copied fromMultiSelectListBoxTester.clearSelection(). -
getSuggestions
Get available items as String representations sent to the client. Any filter that is set is taken into account. Javadoc copied fromMultiSelectListBoxTester.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 fromMultiSelectListBoxTester.getSuggestionItems().- Returns:
- List of items
-