# Migrating from Playwright to TestOwl

:::lead
Import Playwright TypeScript/JavaScript test specs and codegen recordings into TestOwl for self-healing execution and collaborative test maintenance.
:::

Playwright is a powerful automation engine for modern web apps with multi-browser support and robust auto-waiting. Migrating to TestOwl brings Playwright's execution power together with zero-code test authoring, autonomous self-healing, and collaborative test editing for non-developers.

## Why Migrate from Playwright?

- **Eliminate Selector Churn:** Playwright tests still fail when developers refactor classes or DOM layout. TestOwl automatically heals locators at runtime without code changes.
- **Empower the Whole Team:** Product managers and manual testers can view, record, and maintain tests alongside engineers.
- **Unified Reporting & Replays:** Out-of-the-box video replays, console logs, and step timelines without maintaining custom HTML test report servers.

## Importing Playwright Suites

1. Open **Import Wizard** and choose **Playwright**.
2. Select your `tests/` directory containing `.spec.ts` or `.spec.js` files.
3. TestOwl parses `test.describe()`, `page.locator()`, `page.click()`, and `expect()` assertions into visual Test Cases.
4. Setup hooks (`beforeEach`, `beforeAll`) are cleanly isolated into reusable [Flows](/docs/building-tests/flows).

## Validating Converted Tests

Trigger an initial test run in TestOwl Cloud. The runner executes the converted steps with identical browser contexts, verifying that assertions and user flows pass with complete confidence.
