Package io.jmix.masquerade.component
Class ComboBoxOverlay<T extends AbstractComboBox<T>>
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<T>
io.jmix.masquerade.component.AbstractOverlay<ComboBoxOverlay<T>,T>
io.jmix.masquerade.component.ComboBoxOverlay<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 Summary
FieldsFields inherited from class io.jmix.masquerade.component.AbstractOverlay
by, parentComponent, wrappedElement
-
Constructor Summary
ConstructorsConstructorDescriptionComboBoxOverlay
(org.openqa.selenium.By by, T parentComponent, org.openqa.selenium.By itemsTagBy) -
Method Summary
Methods inherited from class io.jmix.masquerade.component.AbstractOverlay
check, getBy, getDelegate, getParentComponent, getVisibleItems, scrollDown, scrollUp
Methods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
should, should, shouldBe, shouldBe, shouldHave, shouldHave, shouldNot, shouldNot, shouldNotBe, shouldNotBe, shouldNotHave, shouldNotHave
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.masquerade.sys.SelenideElementWrapper
disabled, displayed, enabled, exists, shouldHaveAttribute, shouldHaveAttributeValue, shouldHaveCss, shouldHaveCssValue, shouldNotHaveAttribute, shouldNotHaveAttributeValue, shouldNotHaveCss, shouldNotHaveCssValue
-
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
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
Selects the item which should be found by the passedBy
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 classAbstractOverlay<ComboBoxOverlay<T extends AbstractComboBox<T>>,
T extends AbstractComboBox<T>> - Returns:
ElementsCollection
of the visible overlay elements
-