In short.
Playwright Migration Guides is a reference skill for developers converting Cypress or Selenium browser tests to Playwright, but preserving existing test behavior requires careful manual review. It provides substantial side-by-side examples and migration sequences covering locators, authentication, fixtures, page objects and CI. Concrete pitfalls include changing an at-least-three-results assertion into exactly three and treating hidden elements as absent. Nothing was executed; runtime correctness, compatibility and performance benefits are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
The complete supplied scope is skills/playwright/migration/SKILL.md, from-cypress.md and from-selenium.md. Related notices are the repository LICENSE and skills/playwright/LICENSE. Linked core, CI and page-object material, the rest of the repository, third-party documentation and dependency licences are outside this analysis. No installation, test, migration, browser session or CI job was executed; runtime correctness, compatibility, performance and cost remain unassessed.
The overview
identity
The resource is the skills/playwright/migration folder in zebbern/claude-code-guide. Its SKILL.md declares the name playwright-migration and indexes two guides: migration from Cypress and migration from Selenium/WebDriver.
The captured folder is available at [https://github.com/zebbern/claude-code-guide/tree/fdc31f244571949e63f7a7336eef4dc1ebd03cb6/skills/playwright/migration]. The selected files provide instructions and example code; they do not implement an automated migration tool.
assessment
The strongest use is as a comparison reference during a planned migration. The guides explain architectural changes alongside syntax changes and provide both TypeScript and JavaScript versions of major examples.
Use the mappings as starting points that require application-specific review. Some substitutions change assertion meaning, selectors or synchronization, so a mechanical conversion can produce a different test even when the new code looks plausible.
users
The guides suit developers and test engineers who already have Cypress or Selenium browser tests. Beginners get explanations of locators, asynchronous control flow and browser contexts; experienced developers get mappings for custom commands, page objects, authentication and test infrastructure.
The destination is Playwright Test in TypeScript or JavaScript. The Selenium introduction mentions Java, Python and C#, but its full Selenium examples use Java. Equivalent Playwright implementations in those three languages are not supplied.
capabilities
The Cypress guide covers navigation, forms, network mocking, saved authentication state and conversion of custom commands into fixtures and helper classes. It also includes configuration and GitHub Actions examples.
The Selenium guide maps navigation, element interaction, waits, frames, windows, cookies and mouse or keyboard actions. Worked examples cover login, search, payment iframes, popups, drag-and-drop and page objects. Both guides discuss browser projects, traces and parallel execution.
Using it
requirements
The demonstrated workflow uses Node.js, npm, @playwright/test, installed browser binaries and access to the application being tested. Readers need to understand their existing assertions, authentication and shared test data to preserve behavior during conversion.
Minimum Node.js versions, supported operating systems and dependency version constraints are not specified. The selected files also provide no host-specific instructions for installing or registering the skill in an AI assistant.
mechanism
SKILL.md directs the reader to the appropriate Markdown guide. Command tables, before-and-after examples and ordered migration steps support manual rewriting by a developer or assistant.
The central changes are explicit async/await control flow, locators that resolve elements when used, awaited assertions and Playwright Test fixtures. Cypress custom commands become page-object methods or API helpers exposed through test.extend(). Selenium frame and window switching becomes explicit use of frameLocator and Page references.
setup
Both guides start with npm init playwright@latest alongside the existing framework. They then configure a separate test directory, the application base URL and runner settings. The Cypress configuration additionally demonstrates browser projects, retries, traces, failure screenshots and starting an application with npm run dev.
The Cypress authentication example saves storageState through a setup project and recommends excluding .auth/ from version control. Paths, credentials, labels, test IDs and application commands need adaptation. The setup instructions have not been executed.
example
The Selenium login example replaces driver setup, element lookup and explicit visibility waits with a Playwright Test function. It navigates to /login, fills fields by their Email and Password labels, clicks the Sign In button, waits for /dashboard and checks the heading with an awaited toHaveText assertion.
This illustrates the intended translation clearly, including the continued need to synchronize with navigation. It assumes matching accessible labels, button text and URL configuration. The example is illustrative; no successful login run is established.
Assessment & evidence
limitations
Some mappings change test meaning. The Selenium search example checks at least three results in Java but exactly three through toHaveCount(3) in Playwright. The Cypress table maps nonexistence to toBeHidden(), while acknowledging that toHaveCount(0) checks actual absence. The Selenium table also offers getByTestId('x') for By.id('x'), which requires a matching test-ID attribute rather than merely the same HTML ID.
The Selenium advice to delete all waits conflicts with its own waitForURL and waitForEvent examples. In the Cypress request-body example, a non-retrying expect(requestBody).toEqual assertion follows the click without an explicit request-completion wait; this deserves timing review.
The Selenium guide claims a 60–80% reduction in flakiness without supplying measurements or a method. Its broader claims of faster tests and superiority over other frameworks are not established by benchmarks in these files. Dependency compatibility and runtime reliability remain unassessed.
reasoning
The proposed migration sequence addresses shared infrastructure before individual tests: Cypress helpers become fixtures, authentication becomes reusable state, and Selenium page objects are converted before broader test conversion. Both guides retain the old framework during initial adoption.
This organization provides a useful basis for gradual migration. Whether it reduces effort or improves reliability is unknown. Confidence requires comparing the intent and assertions of old and new tests, especially where the examples change selectors, counts, visibility checks or input behavior.
alternatives
Retaining the existing Cypress or Selenium suite is the directly relevant alternative when a framework or language change is not justified. Both guides recommend running the existing and new frameworks together during migration, allowing gradual adoption.
The guides link to deeper material on locators, assertions, configuration, fixtures, authentication and page objects. Those linked files are outside the supplied scope, so their quality and suitability are unknown. The evidence does not establish a universal best framework.
evidence
The source consists of the skill index, both migration guides and two related MIT notices. The guides contain code snippets, mappings and recommendations; they provide no execution receipts, application-specific migration results or supporting performance measurements.
Original captured files are available at [https://raw.githubusercontent.com/zebbern/claude-code-guide/fdc31f244571949e63f7a7336eef4dc1ebd03cb6/skills/playwright/migration/SKILL.md], [https://raw.githubusercontent.com/zebbern/claude-code-guide/fdc31f244571949e63f7a7336eef4dc1ebd03cb6/skills/playwright/migration/from-cypress.md] and [https://raw.githubusercontent.com/zebbern/claude-code-guide/fdc31f244571949e63f7a7336eef4dc1ebd03cb6/skills/playwright/migration/from-selenium.md]. Nothing was executed.
Access & freshness
costs
No purchase price, subscription or usage tariff is stated for this skill. Costs for any AI assistant, CI runners, browser storage, hosted browsers and migration work are unknown.
The guides show multi-browser execution, retries and sharding, but supply no cost measurements or demonstrated savings. Their claims about replacing infrastructure do not establish the expense of a particular migration.
rights
Both supplied notices use the MIT License, permitting use, copying, modification, distribution, sublicensing and sale of the covered software and documentation. Copies or substantial portions must retain the applicable copyright and permission notices.
The repository notice names zebbern, copyright 2025; skills/playwright/LICENSE names TestDino, copyright 2026. Retain both notices when redistributing these guide files. Both disclaim warranties and liability. Licences for Playwright and other dependencies are outside the supplied evidence.
freshness
The supplied snapshot was captured on 17 November 2026 at revision fdc31f244571949e63f7a7336eef4dc1ebd03cb6. The capture date does not establish when the guides were written or last substantively updated.
The guides specify no supported Playwright, Cypress or Selenium versions. Their npm init playwright@latest instruction leaves the installed release unpinned. Compatibility with later releases and changes to linked material is unknown.
actions
Choose the guide matching the existing framework and begin with one valuable smoke test while retaining the original suite. Adapt application configuration and selectors, then review shared authentication, helpers and test data before wider conversion.
Compare original and translated assertions explicitly: minimum versus exact counts, absence versus visibility, HTML IDs versus test IDs, and appended versus replaced input. Review synchronization around requests and popups, and isolate shared data before enabling parallel execution.
Retire the old suite after confirming intended coverage and CI behavior. The Selenium guide additionally recommends at least two weeks of green CI. Keep the original guide files and both MIT notices together when copying or redistributing the skill.
