Action Button Menu
Action button is available by default in the top right corner of the screen and contains different items (such as Refresh, Change Stage, etc.).
A new actionsMenu
instance is created for the button title 'Actions' or 'Other Actions'. If the button title is different, you need to use actionsMenuBySelector(selector: string)
function:
await pega.actionsMenu.open();
or
await pega.actionsMenuBySelector(`//*[contains(text(), "Custom Actions Menu Title")]`).open();
Main actions
Name | Parameter(s) | Type | Description |
---|---|---|---|
selectOption | menuItem | string | Selects an item with a given text from Actions button menu (it is required to open the menu before this step) |
options? | { timeout?: number; interval?: number; retries?: number } | ||
refresh | menuItem | string (Refresh item by default) | Selects and clicks Refresh item from Actions button menu (it is required to open the menu before this step). Default Refresh value can be changed |
options? | { timeout?: number; interval?: number; retries?: number } | ||
open | options? | { timeout?: number; interval?: number; retries?: number } | Opens an Action button menu |
close | {}? options? | { timeout?: number; interval?: number; retries?: number } | Closes an Action button menu |
Main assertions
Name | Parameter(s) | Type | Description |
---|---|---|---|
assertMenuItemIsVisible | menuItem | string | Checks if an Action button menu item exists and visible (it is required to open the menu before this step) |
options? | { timeout?: number; interval?: number; retries?: number, soft?: boolean } | ||
assertMenuItemIsNotVisible | menuItem | string | Checks if an Action button menu item exists but is not visible (it is required to open the menu before this step) |
options? | { timeout?: number; interval?: number; retries?: number, soft?: boolean } | ||
assertMenuItemDoesNotExist | menuItem | string | Checks if an Action button menu item does not exist (it is required to open the menu before this step) |
options? | { timeout?: number; interval?: number; retries?: number, soft?: boolean } | ||
assertMenuItemSize | size | number | Checks if an Action button menu items number has length equal to an expected one |
options? | { timeout?: number; interval?: number; retries?: number, soft?: boolean } |
isMenuItemVisible method
Name | Parameter(s) | Type | Description |
---|---|---|---|
isMenuItemVisible | menuItem | string | Returns true if an Action button menu item exists and visible (it is required to open the menu before this step) |
options? | { timeout?: number; interval?: number; retries?: number } |