Playwright Support

Self-Healing for Playwright — with Automatic Code Update

Using Playwright with TypeScript? Keep your existing tests. If a field or button changes and its locator no longer matches, TestZombie can look for a suitable replacement and document the fix.

ChromiumFirefoxWebKitTypeScript
Playwright Integration

Your tests stay Playwright.

TestZombie adds healing and analysis without replacing your framework model.

✓Locator recovery when UIs change
✓Healing across Chromium, Firefox and WebKit
✓Automatic Code Update for successful healings
Playwright + TestZombie

Modern web tests, less locator maintenance

Playwright provides a powerful testing API. TestZombie adds an intelligence layer for cases where applications and locators evolve.

🧟

Self-Healing

Supported changes to buttons, roles, text or other locators can be handled during test execution.

🌐

Cross-Browser

Playwright support covers Chromium, Firefox and WebKit.

🧩

Existing Suites

You extend your existing Playwright tests rather than rebuild them in a new tool.

🛠️

Automatic Code Update

Successful healings can optionally be written directly into the TypeScript test in a traceable, reviewable form.

From failure to permanent fix

See Playwright healing happen.

When a locator stops matching, TestZombie analyzes the current UI, recovers the intended element and can write the validated fix back into the TypeScript test.

Runtime HealingTypeScriptAutomatic Code Update
Explore Automatic Code Update →
/checkout
checkout.spec.ts test
// original locator
await page.getByText('Pay now').click();

// TestZombie healed
await page.getByRole('button', { name: 'Complete order' }).click();
✓
Test continuesHealing validated · source update available
Integration

Add it to your Playwright project

Three steps are enough: install the package, replace the Playwright import, and set your TestZombie credentials in the Playwright configuration.

1

Install the package

Install the TestZombie Playwright library via npm.

npm install @testzombie/playwright
2

Replace the import

Replace the existing import from @playwright/test with @testzombie/playwright.

Before
import { test, expect } from '@playwright/test';
Afteraction.copy=Copy
import { test, expect } from '@testzombie/playwright';
3

Set API key & email

Set the API key and email in your Playwright configuration.

process.env.TESTZOMBIE_API_KEY = '';
process.env.TESTZOMBIE_EMAIL = '';
Open Developer Guide →
Supported browsers:ChromiumFirefoxWebKit
Playwright + TestZombie AI

Keep your Playwright tests alive.

Start with your existing Playwright project and add runtime healing, automatic code update and centralized analysis.