Developer Guide · Playwright

Build Self-Healing Playwright Tests with TypeScript.

Using Playwright with TypeScript? Follow this step-by-step guide to extend your existing suite with self-healing and optional code updates.

TypeScriptnpmAutomatic Code Update
npm install @testzombie/playwright

import { test, expect }
  from '@testzombie/playwright';

process.env.TESTZOMBIE_API_KEY = '...';
process.env.TESTZOMBIE_EMAIL = '...';
Quick Start

Four steps from Playwright to self-healing.

The integration stays intentionally close to your existing test setup.

1

Install the package

Install the TestZombie Playwright library in your existing project.

npm install @testzombie/playwright
2

Replace the import

Use test and expect from @testzombie/playwright instead of @playwright/test.

import { test, expect } from '@testzombie/playwright';
3

Set credentials

API key and account email are provided through your Playwright configuration or environment.

TESTZOMBIE_API_KEY
TESTZOMBIE_EMAIL
4

Run tests as usual

Existing tests keep running; for suitable locator failures TestZombie adds the healing workflow.

Runtime → Code

Self-healing is the beginning. The fix can stay.

After a successful healing, the replacement locator can be moved into test code so a runtime fallback becomes a maintainable TypeScript fix.

1
Playwright test starts
↓
2
Locator fails after a UI change
↓
3
TestZombie finds and validates a replacement
↓
4
Test continues and the healing can be written back into code
FAQ

TypeScript setup FAQ

Do I have to rewrite my existing Playwright tests?

No. The integration approach replaces the import and extends the existing suite instead of introducing a new test stack.

Which browsers can I keep using?

The Playwright page is designed for Chromium, Firefox and WebKit.

Where is the compact configuration reference?

The /developer/playwright integration page bundles installation and configuration; this page focuses on the broader workflow.