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 passedMenuItemand 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 voidClicks on the menu items in sequence along the passed pathMethods inherited from class io.jmix.masquerade.component.AbstractComponent
getBy, getDelegateMethods inherited from class io.jmix.masquerade.component.AbstractSpecificConditionHandler
check, 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
-
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_IDattributes- Returns:
- wired web-element wrapper for opened composite
-
openItem
Clicks on the menu items in sequence along the passedMenuItemand 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
-