Skip to content

ViewTitlePart

Jan Richter edited this page Apr 24, 2019 · 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