Rest
...args: [label: string]Rest
...args: [label: string]Base element of given page object
Get the locator map of given page object
Parent element of given page object
Get context menu item by name
name of the item to search by
Promise resolving to ContextMenuItem object
Get all context menu items
Promise resolving to array of ContextMenuItem objects
Poll for the element to become visible
custom timeout for the wait
custom interval to control polling
thenable self reference
Recursively select an item with a given path.
E.g. calling select('File', 'Preferences', 'Settings') will open the 'File' -> 'Preferences' submenus and then click on 'Settings'.
Selection happens in order of the arguments, if one of the items in the middle of the path has no children, the consequent path arguments will be ignored.
Rest
...path: string[]path to the item to select, represented by a sequence of strings
void if the last clicked item is a leaf, Menu item representing its submenu otherwise
Wait for the menu to appear and load all its items
Generated using TypeDoc
Object representing a context menu