Class ComboBoxOverlay<T extends AbstractComboBox<T>>

Type Parameters:
T - combobox web-element wrapper type
All Implemented Interfaces:
SpecificConditionHandler, ByLocator, SelenideElementWrapper<ComboBoxOverlay<T>>

public class ComboBoxOverlay<T extends AbstractComboBox<T>> extends AbstractOverlay<ComboBoxOverlay<T>,T>
Web-element wrapper for combobox overlay. Supports items selecting.
  • Field Details

    • itemsTagBy

      protected org.openqa.selenium.By itemsTagBy
  • Constructor Details

    • ComboBoxOverlay

      public ComboBoxOverlay(org.openqa.selenium.By by, T parentComponent, org.openqa.selenium.By itemsTagBy)
  • Method Details

    • select

      public T select(String itemText)
      Selects the item with the passed text in the overlay.
      Parameters:
      itemText - text of the item to select
      Returns:
      parent combobox to call fluent API
    • select

      public T select(org.openqa.selenium.By itemBy)
      Selects the item which should be found by the passed By selector.
      Parameters:
      itemBy - By selector to find and select the overlay item
      Returns:
      parent combobox to call fluent API
    • getVisibleElements

      public com.codeborne.selenide.ElementsCollection getVisibleElements()
      Specified by:
      getVisibleElements in class AbstractOverlay<ComboBoxOverlay<T extends AbstractComboBox<T>>,T extends AbstractComboBox<T>>
      Returns:
      ElementsCollection of the visible overlay elements