Selenium to Playwright migration: what converts and what stays
It depends on where the tests are now. Selenium code in JavaScript, TypeScript or Python is adapted by rule and stays Selenium. A Selenium IDE project is read and written as Playwright. Protractor is not recognized, so it is ported by hand. You can run Selenium and Playwright side by side, so nothing forces a full rewrite.
Last updated:
By the Nexus StudioQA team, Verdict System LLC. November 25, 2026.
Does the adapter turn Selenium into Playwright?
No. Tests written with Selenium in JavaScript, TypeScript or Python, under mocha, jest, pytest or unittest, are adapted by rule and stay Selenium. The browser launch and setup move into the Studio's fixture, while assertions, conditions, loops and waits stay as they were. You get the runs, the verdicts and the evidence without a rewrite. If you want Playwright later, you port the tests one by one, and the Playwright vs Selenium guide says when that is worth it.
What about Selenium IDE projects?
A .side file is plain JSON, and the adapter reads it as it is. Each locator comes from the targets the IDE recorded for that step, and none is invented. The result is a Playwright test in JavaScript, or in Python when you ask for it. Control flow (if, while, times, do, forEach) and any command with no rule stay out of the file as leftovers, with their original line.
What about Protractor?
The adapter does not recognize Protractor, and the Angular team has deprecated it, so plan to port those tests by hand. This is the usual mapping to Playwright Test:
| In Protractor | In Playwright Test |
|---|---|
browser.get(url) | await page.goto(url) |
element(by.css('.save')) | page.locator('.save') |
element(by.buttonText('Save')) | page.getByRole('button', { name: 'Save' }) |
expect(el.getText()).toEqual('Done') | await expect(locator).toHaveText('Done') |
browser.sleep(ms) | Delete it. Playwright waits for the element to be ready, and a web-first assertion retries. |
Once a ported file is a Playwright test, import it like any other and it gets verdicts and evidence.
What are the limits?
- Selenium in Java and C# is not converted today. It is planned next on the roadmap, with no date.
- The Protractor table is a hand-porting guide, not something the Studio does for you.
- The Studio is a Windows 11 app, and the adapter is in beta for the sources that convert to Playwright.
Common questions
Can I run my Selenium tests in the Studio without rewriting them?
Yes for JavaScript, TypeScript and Python. The adapter rewrites by rule, and the tests stay Selenium, so your team keeps reading and editing standard files.
Is Protractor supported?
No. The adapter does not recognize Protractor tests. Port them by hand to Playwright Test, then import the result.
Does a Selenium IDE project convert to Playwright?
Yes. The adapter reads the .side file and writes Playwright tests in JavaScript or Python, and leaves control flow and commands with no rule as leftovers.
Do I have to leave Selenium?
No. The Studio runs Selenium, Playwright and pytest tests, so you can move a few tests at a time, or never.
The free trial runs the same tests with verdicts and evidence, and the getting started guide lists the requirements.