com.vaadin.flow.component.combobox.testbench.

Class ComboBoxElement

    • Constructor Detail

      • ComboBoxElement

        public ComboBoxElement()
    • Method Detail

      • selectByText

        public void selectByText(String text)

        Description copied from interface: HasSelectByText

        Selects the first option matching the given text.

        Specified by:

        selectByText in interface HasSelectByText

        Parameters:

        text - the text of the option to select

      • openPopup

        public void openPopup()

        Opens the popup with options, if it is not already open.

      • closePopup

        public void closePopup()

        Close the popup with options, if it is open.

      • isPopupOpen

        public boolean isPopupOpen()

        Checks whether the popup with options is open.

        Returns:

        true if the popup is open, false otherwiseF

      • getOptions

        public List<String> getOptions()

        Gets a list of all available options.

        Returns:

        a list of the options (visible text)

      • setFilter

        public void setFilter(String filter)

        Sets the filter for the options in the popup.

        Parameters:

        filter - the filter to use for filtering options

      • getFilter

        public String getFilter()

        Gets the filter for the options in the popup.

        Returns:

        the filter to use for filtering options