Skip to content

ViewTitlePart

github-actions[bot] edited this page May 16, 2024 · 3 revisions

titlePart

Lookup

import { SideBarView } from 'vscode-extension-tester';
...
const titlePart = new SideBarView().getTitlePart();

Get Title

const title = await titlePart.getTitle();

ActionButtons

Some views have action buttons in their title part.

// get action button by title
const button = await titlePart.getActionButton("Clear");
// get all action buttons
const buttons = await titlePart.getActionButtons();
// click a button
await button.click();
Clone this wiki locally