Class ListBoxLocator<V>

java.lang.Object
com.vaadin.browserless.locator.Locator<com.vaadin.flow.component.listbox.ListBox<V>,ListBoxLocator<V>>
com.vaadin.flow.component.listbox.ListBoxLocator<V>
Type Parameters:
V - the ListBox's V type parameter
All Implemented Interfaces:
Clickable<com.vaadin.flow.component.listbox.ListBox<V>>, HasAriaLabelFilter<com.vaadin.flow.component.listbox.ListBox<V>,ListBoxLocator<V>>, HasValueFilter<com.vaadin.flow.component.listbox.ListBox<V>,V,ListBoxLocator<V>>

@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor") public class ListBoxLocator<V> extends Locator<com.vaadin.flow.component.listbox.ListBox<V>,ListBoxLocator<V>> implements Clickable<com.vaadin.flow.component.listbox.ListBox<V>>, HasAriaLabelFilter<com.vaadin.flow.component.listbox.ListBox<V>,ListBoxLocator<V>>, HasValueFilter<com.vaadin.flow.component.listbox.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 Details

    • ListBoxLocator

      public ListBoxLocator(Class<V> vType)
      Creates a locator that searches for a ListBox.
      Parameters:
      vType - class witness pinning the V type parameter; the value is unused
    • ListBoxLocator

      public ListBoxLocator(com.vaadin.flow.component.listbox.ListBox<V> component)
      Creates a locator already bound to the given component, so that the action methods run against it instead of against a lookup.
      Parameters:
      component - the component the locator resolves to
  • Method Details

    • getComponent

      public com.vaadin.flow.component.listbox.ListBox<V> getComponent()
      Description copied from interface: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<V>
      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<V>
    • getSelected

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

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

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

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