Package io.jmix.masquerade.component
Class AbstractComboBox<T extends AbstractComboBox<T>>
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<T>
io.jmix.masquerade.component.AbstractComponent<T>
io.jmix.masquerade.component.AbstractField<C>
io.jmix.masquerade.component.AbstractOverlayComponent<T,ComboBoxOverlay<T>>
io.jmix.masquerade.component.AbstractComboBox<T>
- Type Parameters:
T- inheritor class type
- All Implemented Interfaces:
SpecificConditionHandler,ByLocator,SelenideElementWrapper<T>
- Direct Known Subclasses:
AbstractMultiSelectComboBox,ComboBox,EntityComboBox
public abstract class AbstractComboBox<T extends AbstractComboBox<T>>
extends AbstractOverlayComponent<T,ComboBoxOverlay<T>>
Abstract class for combobox-like web-element wrappers. Supports value typing and single value selecting.
-
Field Summary
Fields inherited from class io.jmix.masquerade.component.AbstractOverlayComponent
TOGGLE_BUTTON_CSSFields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ComboBoxOverlay<T>protected TselectSingleValue(String value) Selects single value in theComboBoxOverlay.Types the passed value into the combobox input field.Methods inherited from class io.jmix.masquerade.component.AbstractOverlayComponent
clickItemsOverlay, getHostCssSelector, getItemsOverlayMethods inherited from class io.jmix.masquerade.component.AbstractField
check, getInputDelegate, getLabelDelegateMethods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegateMethods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
should, should, shouldBe, shouldBe, shouldHave, shouldHave, shouldNot, shouldNot, shouldNotBe, shouldNotBe, shouldNotHave, shouldNotHaveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.masquerade.sys.SelenideElementWrapper
disabled, displayed, enabled, exists, shouldHaveAttribute, shouldHaveAttributeValue, shouldHaveCss, shouldHaveCssValue, shouldNotHaveAttribute, shouldNotHaveAttributeValue, shouldNotHaveCss, shouldNotHaveCssValue
-
Constructor Details
-
AbstractComboBox
protected AbstractComboBox(org.openqa.selenium.By by)
-
-
Method Details
-
selectSingleValue
Selects single value in theComboBoxOverlay.- Parameters:
value- value to select- Returns:
thisto call fluent API
-
type
Types the passed value into the combobox input field.- Parameters:
value- value to type- Returns:
thisto call fluent API
-
getItemsOverlayElement
- Specified by:
getItemsOverlayElementin classAbstractOverlayComponent<T extends AbstractComboBox<T>,ComboBoxOverlay<T extends AbstractComboBox<T>>> - Returns:
- current opened
overlay wrapperfor the combobox
-