Class ComboBoxPw

java.lang.Object
in.virit.mopo.ComboBoxPw

public class ComboBoxPw extends Object
Helper class to work with vaadin-combo-box component
  • Constructor Details

    • ComboBoxPw

      public ComboBoxPw(com.microsoft.playwright.Locator gridLocator)
      Creates a ComboBox page object for the given locator.
      Parameters:
      gridLocator - the Playwright locator for the combobox to be interacted with
  • Method Details

    • filterAndSelectFirst

      public void filterAndSelectFirst(String filter)
      Searches for given term in the ComboBox and picks the first suggestion.
      Parameters:
      filter - the string to be searched for
    • filter

      public ComboBoxPw filter(String filter)
      Fills given filter to the combobox.
      Parameters:
      filter - the filter string to be set
      Returns:
      the ComboBoxPw (for fluent API)
    • selectOption

      public ComboBoxPw selectOption(String option)
      Selects a given option from currently open suggestions.
      Parameters:
      option - the text of the option to select
      Returns:
      the ComboBoxPw for further configuration
    • selectionDropdown

      public com.microsoft.playwright.Locator selectionDropdown()
      Returns a locator for the combobox overlay that contains current suggestions
      Returns:
      the locator for selection overlay
    • openDropDown

      public com.microsoft.playwright.Locator openDropDown()
      Clicks on the dropdown toggle button in the ComboBox to show the options.
      Returns:
      a Locator to the selection dropdown