# Test framework migration skill

> Test framework migration skill is an open-source agent skill for browser automation. Convert tests between Selenium, Playwright, Puppeteer and Cypress. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/LambdaTest/agent-skills/tree/main/test-framework-migration-skill
- **Repository:** https://github.com/lambdatest/agent-skills
- **GitHub stars:** 392
- **License:** MIT
- **Skill name:** test-framework-migration-skill
- **Collection:** https://github.com/LambdaTest/agent-skills
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

This skill migrates test automation scripts from one browser framework to another. The agent detects the source framework from the message or open files using signals such as driver.findElement, cy.get or page.getByRole, then detects the target, and asks when either is ambiguous.

It then detects the language, routes to the matching reference file, applies API mappings, lifecycle changes and pattern conversions, and ends with a validation workflow. Supported languages are Java, Python, JavaScript, TypeScript and C#. A summary lists the reference files for deeper patterns.

Conversions named include Selenium to Playwright and back, Puppeteer to Playwright and Cypress to Playwright.

## When your agent uses it

> 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", "rewrite tests in", "switch from [framework] to [framework]".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/LambdaTest/agent-skills/tree/HEAD/test-framework-migration-skill)
- [License: MIT](https://github.com/LambdaTest/agent-skills/tree/HEAD/test-framework-migration-skill)

## Features

- **Source detection:** Identifies the current framework from keywords and code signals.
- **Target detection:** Reads the desired framework from the request.
- **Language detection:** Handles Java, Python, JavaScript, TypeScript and C#.
- **Reference routing:** Chooses the mapping file for the framework pair.
- **API and lifecycle mapping:** Applies command, setup and teardown conversions.
- **Validation workflow:** Follows conversion with a verification pass.

## Good for

- Port Selenium tests to Playwright
- Convert Cypress specs to Playwright
- Move Puppeteer scripts to Playwright
- Rewrite tests in another language or framework

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/test-framework-migration-skill` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LambdaTest/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/test-framework-migration-skill &&
cp -R "$tmp/test-framework-migration-skill" ~/.claude/skills/test-framework-migration-skill &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/test-framework-migration-skill` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/test-framework-migration-skill` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LambdaTest/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/test-framework-migration-skill &&
cp -R "$tmp/test-framework-migration-skill" ~/.agents/skills/test-framework-migration-skill &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/test-framework-migration-skill` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/test-framework-migration-skill` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LambdaTest/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/test-framework-migration-skill &&
cp -R "$tmp/test-framework-migration-skill" ~/.cursor/skills/test-framework-migration-skill &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/test-framework-migration-skill` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/LambdaTest/agent-skills.git --path test-framework-migration-skill
```

Or copy the folder to `~/.gemini/skills/test-framework-migration-skill` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/test-framework-migration-skill`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LambdaTest/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/test-framework-migration-skill &&
cp -R "$tmp/test-framework-migration-skill" ~/.copilot/skills/test-framework-migration-skill &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/test-framework-migration-skill` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/LambdaTest/agent-skills.git
```

Then copy `agent-skills/test-framework-migration-skill` into your agent's skills folder as `test-framework-migration-skill`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which frameworks are covered?

Selenium, Playwright, Puppeteer and Cypress.

### What if I do not say which framework I use?

It asks which framework your current tests are in.

### Which languages work?

Java, Python, JavaScript, TypeScript and C#.

### Does Test framework migration skill validate the result?

Yes, it includes a validation workflow after conversion.

### How do I install Test framework migration skill in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/test-framework-migration-skill to use it in all your projects, or to .claude/skills/test-framework-migration-skill in one project.

### Does Test framework migration skill run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Test framework migration skill?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Test framework migration skill?

The closest alternatives to Test framework migration skill are Playwright explore website, Firebase test lab migration skill, Pester migration, Dart migrate to checks package and Playwright interactive.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Playwright explore website](https://ai-powered.com/skills/playwright-explore-website): Playwright explore website is an open-source agent skill for browser automation.
- [Firebase test lab migration skill](https://ai-powered.com/skills/firebase-test-lab-migration-skill): Firebase test lab migration skill is an open-source agent skill for cloud and infrastructure.
- [Pester migration](https://ai-powered.com/skills/pester-migration): Pester migration is an open-source agent skill for developer tools.
- [Dart migrate to checks package](https://ai-powered.com/skills/dart-migrate-to-checks-package): Dart migrate to checks package is an open-source agent skill for developer tools.
- [Playwright interactive](https://ai-powered.com/skills/playwright-interactive): Playwright interactive is a free agent skill for browser automation.
- [Playwright](https://ai-powered.com/skills/playwright): Playwright is a free agent skill for browser automation.
- [Microsoft agent framework](https://ai-powered.com/skills/microsoft-agent-framework): Microsoft agent framework is an open-source agent skill for developer tools.
- [React18 enzyme to rtl](https://ai-powered.com/skills/react18-enzyme-to-rtl): React18 enzyme to rtl is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/test-framework-migration-skill
