Package io.jmix.masquerade.component
Class AbstractDropdownComponent<T extends AbstractDropdownComponent<T>>
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<T>
io.jmix.masquerade.component.AbstractComponent<T>
io.jmix.masquerade.component.AbstractDropdownComponent<T>
- Type Parameters:
T
- inheritor class type
- All Implemented Interfaces:
SpecificConditionHandler
,ByLocator
,SelenideElementWrapper<T>
- Direct Known Subclasses:
ComboButton
,DropdownButton
public abstract class AbstractDropdownComponent<T extends AbstractDropdownComponent<T>>
extends AbstractComponent<T>
Abstract class for web-element wrappers with dropdowns. Supports clicking on overlay button
to open
MenuBarOverlay
.-
Field Summary
Fields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClicks on overlay button to open anoverlay
.protected MenuBarOverlay<T>
protected com.codeborne.selenide.SelenideElement
Methods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegate
Methods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
check, 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
-
AbstractDropdownComponent
protected AbstractDropdownComponent(org.openqa.selenium.By by)
-
-
Method Details
-
clickItemsOverlay
Clicks on overlay button to open anoverlay
.- Returns:
this
to call fluent API
-
getItemsOverlay
- Returns:
- current opened
overlay
web-element wrapper
-
getOpenOverlayButtonElement
protected com.codeborne.selenide.SelenideElement getOpenOverlayButtonElement()- Returns:
SelenideElement
web-element wrapper for open overlay button
-
getMenuBarOverlay
- Returns:
- current opened
overlay wrapper
for the dropdown
-