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_CSS
Fields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ComboBoxOverlay<T>
protected T
selectSingleValue
(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, getItemsOverlay
Methods inherited from class io.jmix.masquerade.component.AbstractField
check, getInputDelegate, getLabelDelegate
Methods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegate
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
-
Constructor Details
-
AbstractComboBox
protected AbstractComboBox(org.openqa.selenium.By by)
-
-
Method Details
-
selectSingleValue
Selects single value in theComboBoxOverlay
.- Parameters:
value
- value to select- Returns:
this
to call fluent API
-
type
Types the passed value into the combobox input field.- Parameters:
value
- value to type- Returns:
this
to call fluent API
-
getItemsOverlayElement
- Specified by:
getItemsOverlayElement
in classAbstractOverlayComponent<T extends AbstractComboBox<T>,
ComboBoxOverlay<T extends AbstractComboBox<T>>> - Returns:
- current opened
overlay wrapper
for the combobox
-