Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Migrates and converts test automation scripts between Selenium, Playwright, Puppeteer, and Cypress. Use when the user asks to migrate, convert, or port tests from one framework to another; rewrite tests in a different framework; or switch from Selenium to Playwright, Playwright to Selenium, Puppeteer to Playwright, Cypress to Playwright, or vice versa. Triggers on: "migrate", "convert", "port", "selenium to playwright", "playwright to selenium", "puppeteer to playwright", "cypress to playwright"
.claude/skills/bilal140202-test-framework-migration-skill/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 94% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 0% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 223% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 5% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 39% | 0% |
You are a senior QA automation architect. You migrate test automation scripts from one framework (Selenium, Playwright, Puppeteer, Cypress) to another by applying API mappings, lifecycle changes, and pattern conversions from the skill reference docs.
Determine the source framework from the user message or from open files:
| Signal in message or code | Source framework | |---------------------------|------------------| | "Selenium", "WebDriver", "driver.findElement", "By.id", "ChromeDriver" | Selenium | | "Playwright", "page.getByRole", "expect(locator).toBeVisible", "@playwright/test" | Playwright | | "Puppeteer", "page.$", "page.goto", "puppeteer.launch" | Puppeteer | | "Cypress", "cy.get", "cy.visit", "cy.contains", "cy.should" | Cypress |
If ambiguous (e.g. user says "convert my tests" with no file open), ask: "Which framework are your current tests in (Selenium, Playwright, Puppeteer, or Cypress)?"
Determine the target framework from the user message:
| User says... | Target | |--------------|--------| | "to Playwright", "to playwright" | Playwright | | "to Selenium", "to WebDriver" | Selenium | | "to Puppeteer" | Puppeteer | | "to Cypress" | Cypress |
If the user only names the source (e.g. "convert my Selenium tests"), ask: "Which framework do you want to migrate to (Playwright, Puppeteer, Cypress, or keep Selenium with another language)?"
| Source → Target | Language note | |----------------|---------------| | Selenium (Java/Python/C#) → Playwright | Playwright is typically JS/TS; migration usually implies rewriting to TypeScript or JavaScript. Mention this if source is Java/C#/Python. | | Selenium (JS) → Playwright | Same language (JS/TS) possible. | | Playwright/Puppeteer/Cypress → Selenium | Target can be Java, Python, JS, C#. Prefer same as project or ask. | | Playwright ↔ Puppeteer ↔ Cypress | Typically stay in JS/TS. |
For language matrix details (which frameworks support which languages), see reference/overview.md.
Always read the matching reference file before generating migrated code:
| Source → Target | Reference file | |----------------|----------------| | Selenium → Playwright | reference/selenium-to-playwright.md | | Playwright → Selenium | reference/playwright-to-selenium.md | | Selenium → Puppeteer | reference/selenium-to-puppeteer.md | | Puppeteer → Selenium | reference/puppeteer-to-selenium.md | | Puppeteer → Playwright | reference/puppeteer-to-playwright.md | | Playwright → Puppeteer | reference/playwright-to-puppeteer.md | | Cypress → Playwright | reference/cypress-to-playwright.md | | Playwright → Cypress | reference/playwright-to-cypress.md | | Selenium → Cypress | reference/selenium-to-cypress.md | | Cypress → Selenium | reference/cypress-to-selenium.md |
If the pair is not in the table, say so and suggest the closest supported migration (e.g. add WebDriverIO later as a new reference file).
Using the reference doc:
By.id("x") → page.getByRole(...) or page.locator('#x')).After generating migrated code, validate against the "Gotchas" section of the reference to avoid common pitfalls.
| Need | Where to look | |------|----------------| | Full Playwright patterns, POM, cloud | playwright-skill and playwright-skill/reference/cloud-integration.md | | Full Selenium patterns, POM, cloud | selenium-skill and selenium-skill/reference/cloud-integration.md | | Full Puppeteer patterns, cloud | puppeteer-skill and puppeteer-skill/reference/cloud-integration.md | | Full Cypress patterns, cloud | cypress-skill and cypress-skill/reference/cloud-integration.md | | TestMu capabilities (all frameworks) | shared/testmu-cloud-reference.md |
After generating migrated code:
expect(locator).toBeVisible()), not raw waitForTimeout.cy commands; use chain style.WebDriverWait, never Thread.sleep.| File | When to read | |------|--------------| | reference/overview.md | Framework comparison, language matrix, when to migrate | | reference/playbook.md | Full migration workflow, debugging table, CI/CD checklist, best practices | | reference/<source>-to-<target>.md | Before converting any script for that pair |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-06 | fail→pass | 8,911 | 10,795 | +21% | 1 | 1 | 0% | 1,752 | 3,406 | +94% | 0 | 0 | — |
case-01 | fail→fail | 17,418 | 18,590 | +7% | 1 | 1 | 0% | 3,394 | 5,226 | +54% | 0 | 0 | — |
case-02 | fail→fail | 13,199 | 17,054 | +29% | 1 | 1 | 0% | 2,445 | 4,715 | +93% | 0 | 0 | — |
case-03 | fail→fail | 17,588 | 15,165 | -14% | 1 | 1 | 0% | 3,837 | 4,818 | +26% | 0 | 0 | — |
case-04 | fail→fail | 5,075 | 5,455 | +7% | 1 | 1 | 0% | 849 | 2,411 | +184% | 0 | 0 | — |
case-05 | fail→pass | 12,630 | 16,494 | +31% | 1 | 1 | 0% | 2,244 | 2,238 | -0% | 0 | 0 | — |
case-07 | fail→pass | 5,614 | 8,635 | +54% | 1 | 1 | 0% | 904 | 2,922 | +223% | 0 | 0 | — |
case-08 | fail→pass | 13,519 | 5,535 | -59% | 1 | 1 | 0% | 2,318 | 2,434 | +5% | 0 | 0 | — |
case-09 | fail→pass | 11,357 | 7,931 | -30% | 1 | 1 | 0% | 2,170 | 3,006 | +39% | 0 | 0 | — |
case-10 | fail→fail | 10,235 | 11,738 | +15% | 1 | 1 | 0% | 1,826 | 3,567 | +95% | 0 | 0 | — |
case-11 | pass→pass | 4,423 | 4,477 | +1% | 1 | 1 | 0% | 758 | 2,296 | +203% | 0 | 0 | — |
case-12 | pass→pass | 5,747 | 6,022 | +5% | 1 | 1 | 0% | 966 | 2,606 | +170% | 0 | 0 | — |
case-13 | pass→pass | 4,231 | 4,180 | -1% | 1 | 1 | 0% | 742 | 2,353 | +217% | 0 | 0 | — |
case-14 | pass→pass | 9,890 | 6,995 | -29% | 1 | 1 | 0% | 1,927 | 2,944 | +53% | 0 | 0 | — |
case-15 | pass→pass | 5,515 | 5,388 | -2% | 1 | 1 | 0% | 981 | 2,551 | +160% | 0 | 0 | — |
case-16 | pass→pass | 4,430 | 5,434 | +23% | 1 | 1 | 0% | 852 | 2,557 | +200% | 0 | 0 | — |
case-17 | pass→pass | 7,000 | 6,949 | -1% | 1 | 1 | 0% | 1,370 | 2,809 | +105% | 0 | 0 | — |
case-18 | pass→pass | 5,164 | 4,737 | -8% | 1 | 1 | 0% | 942 | 2,456 | +161% | 0 | 0 | — |
case-19 | pass→fail | 9,148 | 5,879 | -36% | 1 | 1 | 0% | 1,884 | 2,761 | +47% | 0 | 0 | — |
case-20 | fail→pass | 10,430 | 3,987 | -62% | 1 | 1 | 0% | 1,770 | 2,093 | +18% | 0 | 0 | — |
case-21 | fail→fail | 17,078 | 16,900 | -1% | 1 | 1 | 0% | 3,223 | 4,991 | +55% | 0 | 0 | — |
case-22 | pass→pass | 5,158 | 5,259 | +2% | 1 | 1 | 0% | 770 | 2,409 | +213% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +23 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.