Class ListBoxLocator<V>
java.lang.Object
com.vaadin.browserless.locator.Locator<ListBox<V>,ListBoxLocator<V>>
com.vaadin.flow.component.listbox.ListBoxLocator<V>
- All Implemented Interfaces:
Clickable<ListBox<V>>,HasAriaLabelFilter<ListBox<V>,,ListBoxLocator<V>> HasValueFilter<ListBox<V>,V, ListBoxLocator<V>>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class ListBoxLocator<V>
extends Locator<ListBox<V>,ListBoxLocator<V>>
implements Clickable<ListBox<V>>, HasAriaLabelFilter<ListBox<V>,ListBoxLocator<V>>, HasValueFilter<ListBox<V>,V,ListBoxLocator<V>>
Generated locator for
ListBox, derived from
ListBoxTester. 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
Constructors -
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 available items as String representations sent to the client.voidselectItem(String selection) Select item 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
-
ListBoxLocator
-
ListBoxLocator
-
-
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 item. Javadoc copied fromListBoxTester.getSelected().- Returns:
- current selection
-
selectItem
Select item by client string representation. Javadoc copied fromListBoxTester.selectItem(java.lang.String).- Parameters:
selection- item representation string
-
getSuggestions
Get available items as String representations sent to the client. Any filter that is set is taken into account. Javadoc copied fromListBoxTester.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 fromListBoxTester.getSuggestionItems().- Returns:
- List of items
-