Skip to content

Robot Framework Electron & VS Code

Two Robot Framework libraries built on the Browser library:

  • robotframework-electron (Electron) starts Electron applications. Their windows are ordinary Browser pages, and Browser’s keywords work on them.
  • robotframework-vscode (VSCode) starts isolated instances of a VS Code that you provide, with the extension under test, for end-to-end tests of VS Code extensions. It contains the keywords of Electron.

The libraries provide the technique: starting the application and handing its windows to Browser. What to click and which locators to use belongs to your tests.

The libraries are in a pilot phase, at version 0.1.0, and not yet published on PyPI.

The site has a section per library and one for running the tests. The Electron section covers what both libraries can do, because VSCode contains Electron; the VS Code section adds what is specific to VS Code.