Package com.vaadin.flow.component.select
Class SelectLocator<Y>
java.lang.Object
com.vaadin.browserless.locator.Locator<Select<Y>,SelectLocator<Y>>
com.vaadin.flow.component.select.SelectLocator<Y>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class SelectLocator<Y>
extends Locator<Select<Y>,SelectLocator<Y>>
implements Clickable<Select<Y>>
Generated locator for
Select, derived from
SelectTester. 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 dropdown suggestions 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, withAriaLabel, withAriaLabelContaining, withAttribute, withAttribute, withCaption, withCaptionContaining, withClassName, withCondition, withId, withLabel, withLabelContaining, withoutAttribute, withoutAttribute, withoutClassName, withoutTheme, withText, withTextContaining, withTheme, withValueMethods 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, rightClick
-
Constructor Details
-
SelectLocator
-
SelectLocator
-
-
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>
-
getSelected
Get the currently selected item. Javadoc copied fromSelectTester.getSelected().- Returns:
- current selection
-
selectItem
Select item by client string representation. Javadoc copied fromSelectTester.selectItem(java.lang.String).- 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. Javadoc copied fromSelectTester.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 fromSelectTester.getSuggestionItems().- Returns:
- List of items
-