ViewControl

Look up the ViewControl by title
Section titled “Look up the ViewControl by title”Import and find the control through activity bar
import { ActivityBar, ViewControl } from 'vscode-extension-tester';...// get view control for Explorerconst control = (await new ActivityBar().getViewControl('Explorer')) as ViewControl;Open view
Section titled “Open view”Open the associated view if not already open and get a handler for it
const view = await control.openView();Close view
Section titled “Close view”Close the associated view if open
await control.closeView();Get title
Section titled “Get title”Get the control’s/view’s title
const title = await control.getTitle();Open context menu
Section titled “Open context menu”Right click on the control to open the context menu
const menu = await control.openContextMenu();