Skip to main content
Version: 9.0.0

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

NameParameter(s)TypeDescription
selectOptionmenuItemstringSelects 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 }
refreshmenuItemstring (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 }
openoptions?{ 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

NameParameter(s)TypeDescription
assertMenuItemIsVisiblemenuItemstringChecks 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 }
assertMenuItemIsNotVisiblemenuItemstringChecks 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 }
assertMenuItemDoesNotExistmenuItemstringChecks 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 }
assertMenuItemSizesizenumberChecks 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

NameParameter(s)TypeDescription
isMenuItemVisiblemenuItemstringReturns 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 }