We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.select.
Package com.vaadin.flow.component.select
Class SelectTester<T extends Select<Y>,Y>
java.lang.Object
com.vaadin.testbench.unit.ComponentTester<T>
com.vaadin.flow.component.select.SelectTester<T,Y>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the currently selected item.
Get the actual items for the dropdown as a List.
Get dropdown suggestions as String representations sent to the client.
void
selectItem
(String selection) Select item by client string representation.
Methods inherited from class com.vaadin.testbench.unit.ComponentTester
ensureComponentIsUsable, ensureComponentIsUsable, ensureVisible, ensureVisible, find, findAllByQuery, findByQuery, fireDomEvent, fireDomEvent, fireDomEvent, getComponent, getField, getField, getMethod, getMethod, isUsable, isUsable, notUsableReasons, notUsableReasons, roundTrip, setModal
-
Constructor Details
-
SelectTester
Wrap given component for testing.
Parameters:
component
- target component
-
-
Method Details
-
getSelected
Get the currently selected item.
Returns:
current selection
-
selectItem
Select item by client string representation.
Parameters:
selection
- item representation string -
getSuggestions
Get dropdown suggestions as String representations sent to the client. Any filter that is set is taken into account.
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.
Returns:
List of items
-