Class SelectLocator<Y>

java.lang.Object
com.vaadin.browserless.locator.Locator<Select<Y>,SelectLocator<Y>>
com.vaadin.flow.component.select.SelectLocator<Y>
All Implemented Interfaces:
Clickable<Select<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 Details

    • SelectLocator

      public SelectLocator(Class<Y> yType)
    • SelectLocator

      public SelectLocator(Select<Y> component)
  • Method Details

    • getComponent

      public Select<Y> getComponent()
      Description copied from interface: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<Y>
      Returns:
      the component under test
    • ensureComponentIsUsable

      public void ensureComponentIsUsable()
      Description copied from interface: Clickable
      Ensures the component is in a usable state before interaction.
      Specified by:
      ensureComponentIsUsable in interface Clickable<Y>
    • getSelected

      public Y getSelected()
      Get the currently selected item. Javadoc copied from SelectTester.getSelected().
      Returns:
      current selection
    • selectItem

      public void selectItem(String selection)
      Select item by client string representation. Javadoc copied from SelectTester.selectItem(java.lang.String).
      Parameters:
      selection - item representation string
    • getSuggestions

      public List<String> getSuggestions()
      Get dropdown suggestions as String representations sent to the client. Any filter that is set is taken into account. Javadoc copied from SelectTester.getSuggestions().
      Returns:
      List of item representation strings
    • getSuggestionItems

      public List<Y> getSuggestionItems()
      Get the actual items for the dropdown as a List. Any filter that is set is taken into account. Javadoc copied from SelectTester.getSuggestionItems().
      Returns:
      List of items