Playwright Migration Guides
Step-by-step guides for migrating a test suite from Cypress or Selenium/WebDriver to Playwright.
Dev & CodingIntermediate★ 352⑂ 58AI score 5/10Last updated: Jul 2, 2026
What it does
- Provides two migration paths: Cypress → Playwright and Selenium/WebDriver → Playwright.
- Supplies side-by-side command mapping tables between the old framework's API and Playwright's equivalents.
- Explains architectural differences: waiting model, selector/locator strategy, test runner structure.
- Outlines incremental adoption strategies so you can run old and new suites side by side instead of a big-bang rewrite.
Who it's for
- QA engineers modernizing a legacy Selenium suite.
- Frontend / automation developers evaluating a move off Cypress.
- Tech leads sizing up the effort and ordering of an E2E framework switch.
Examples
- "Convert this Cypress spec into a Playwright test" — maps
cy.get()andcy.intercept()topage.locator()andpage.route(). - "Rewrite these Selenium explicit waits the Playwright way" — replaces
WebDriverWait/ExpectedConditionswith auto-waiting and web-firstexpect()assertions. - "I have 200 legacy tests — propose a migration order" — get a phased plan with parallel-run guidance.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/testdino-hq/playwright-skill/HEAD/migration/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the migration folder from the GitHub repo testdino-hq/playwright-skill into my ~/.claude/skills/playwright-migration/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/testdino-hq/playwright-skill.git /tmp/playwright-skill && mkdir -p ~/.claude/skills/playwright-migration && cp -r /tmp/playwright-skill/migration/* ~/.claude/skills/playwright-migration/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/testdino-hq/playwright-skill.git - Create the skill folder:
mkdir -p ~/.claude/skills/playwright-migration - Copy the files:
cp -r playwright-skill/migration/* ~/.claude/skills/playwright-migration/ - Verify that
SKILL.md,from-cypress.md, andfrom-selenium.mdexist in~/.claude/skills/playwright-migration/. - Restart Claude Code, then try a prompt like "Migrate this Cypress test to Playwright."
View source on GitHub ↗License: MIT