Package io.jmix.masquerade.component
Class AbstractMenu<M>
java.lang.Object
io.jmix.masquerade.component.AbstractSpecificConditionHandler<T>
io.jmix.masquerade.component.AbstractComponent<M>
io.jmix.masquerade.component.AbstractMenu<M>
- Type Parameters:
M
- inheritor menu class type
- All Implemented Interfaces:
SpecificConditionHandler
,ByLocator
,SelenideElementWrapper<M>
- Direct Known Subclasses:
HorizontalMenu
,ListMenu
Abstract class for menu web-element wrappers. Supports opening menu items by
UI_TEST_ID
path.-
Field Summary
Fields inherited from class io.jmix.masquerade.component.AbstractComponent
by, wrappedElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Composite<T>>
TClicks on the menu items in sequence along the passedMenuItem
and returns the open composite (view).<T extends Composite<T>>
TClicks on the menu items in sequence along the passed path and returns the open composite (view).abstract void
Clicks on the menu items in sequence along the passed pathMethods 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
-
AbstractMenu
protected AbstractMenu(org.openqa.selenium.By by)
-
-
Method Details
-
openItem
Clicks on the menu items in sequence along the passed path and returns the open composite (view).- Type Parameters:
T
- composite class type- Parameters:
compositeClass
- composite class to wire and returnpath
- path of the menu itemsUI_TEST_ID
attributes- Returns:
- wired web-element wrapper for opened composite
-
openItem
Clicks on the menu items in sequence along the passedMenuItem
and returns the open composite (view).- Type Parameters:
T
- composite class type- Parameters:
menuItem
- menu item information object- Returns:
- wired web-element wrapper for opened composite
-
openItem
Clicks on the menu items in sequence along the passed path- Parameters:
path
- path of menu items
-