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>>

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

      public ListBoxLocator(ListBox<V> component)
  • Method Details

    • getComponent

      public 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