Skip to content

ActionsControl

actionControl

Import and find the control through activity bar

import { ActivityBar, ActionsControl } from 'vscode-extension-tester';
...
// get actions control for 'Manage'
const control = (await new ActivityBar().getGlobalAction('Manage')) as ActionsControl;

Click the action control to open its context menu

const menu = await control.openActionMenu();

Get the control’s title

const title = await control.getTitle();

Right click on the control to open the context menu (in this case has the same effect as openActionMenu)

const menu = await control.openContextMenu();