Skip to content

Page Object APIs

Jan Richter edited this page Nov 19, 2021 · 29 revisions

In order to keep everyone from having to go through the VS Code DOM, which is quite complicated, the framework provides page objects to work with parts of VS Code directly.

See the individual page object pages below for quick usage guide. For complete API reference, you can generate typedoc with npm run doc and check the docs folder.

Activity Bar
Bottom Bar
Dialogs
Editor
Menu
Title Bar
Side Bar
Status Bar
Workbench

Native Dialogs

There is also a limited support for handling native dialogs done via virtual key presses. This requires installing the module vscode-extension-tester-native alongside the main extension tester package.

If you venture into this territory, make sure the application does not lose focus and you are not touching the keyboard while a native dialog is being handled.

Extest now also contributes new commands to open files or folders without using native dialogs. If you simply need either open, we recommend using the commands instead of the open dialog for increased stability. Learn more about opening files and folders here.

Clone this wiki locally