protected abstract static class MenuDescription.Init<T extends MenuDescription.Init<T>> extends WebElementDescription.Init<T>
Modifier | Constructor and Description |
---|---|
protected |
Init() |
Modifier and Type | Method and Description |
---|---|
MenuDescription |
build()
Returns the built description instance (builder pattern).
|
T |
firstMenuItem(java.lang.String firstMenuItem)
Initializes the first item in the list of items in this menu.
|
T |
firstMenuItem(StringProperty firstMenuItem)
Initializes the first item in the list of items in this menu.
|
T |
topLevelMenuItems(java.lang.String[] topLevelMenuItems)
Initializes the top level menu items in this object.
|
T |
topLevelMenuItemsCount(java.lang.Integer topLevelMenuItemsCount)
Initializes the number of top level menu items in this menu.
|
accessibilityName, accessibilityName, cssSelector, cssSelector, role, role, xpath, xpath
absoluteLocation, absoluteLocation, absoluteLocation, attribute, attribute, attributes, className, className, id, id, innerHTML, innerHTML, innerText, innerText, location, location, location, name, name, outerHTML, outerHTML, outerText, outerText, size, size, size, style, style, styles, tagName, tagName, title, title, visible
index, self, vri, vri
public MenuDescription build()
DescriptionBase.Init
build
in class WebElementDescription.Init<T extends MenuDescription.Init<T>>
public T topLevelMenuItemsCount(java.lang.Integer topLevelMenuItemsCount)
topLevelMenuItemsCount
- the number of top level menu items in this menu.public T topLevelMenuItems(java.lang.String[] topLevelMenuItems)
topLevelMenuItems
- all top level menu items in this menu.public T firstMenuItem(java.lang.String firstMenuItem)
firstMenuItem
- the first item in the list of items in this menu.public T firstMenuItem(StringProperty firstMenuItem)
firstMenuItem
- a StringProperty (or RegExpProperty) representing the first item in the list of items in this menu.firstMenuItem
- a StringProperty (or RegExpProperty) representing the first item in the list of items in this menu.