Skip to main content

playwright-webext

playwright-webext is a set of Playwright fixtures and helpers that make testing browser extensions easier.

Features​

See the complete example: a TypeScript extension tested with playwright-webext.

Motivation​

Playwright's extension guide shows how to launch a browser with an extension, wait for its service worker, and find its ID. You then need to maintain that setup and write helpers for extension tasks.

Playwright-webext handles browser setup and extension installation, so you can focus on testing your extension's functionality using familiar Playwright pages, locators, and assertions.

Proceed to Getting started.