Pick Playwright for new web test suites written in JavaScript, TypeScript, Python, Java or .NET. It waits for elements on its own, runs tests in parallel out of the box and ships the strongest debugging and AI tooling. Keep Selenium if you need real Safari, native mobile through Appium, Ruby, or you already own a large, stable suite. Don’t migrate a suite that works just because Playwright is newer.
Playwright is the better default for new web test automation in 2026, thanks to built-in waiting, parallel runs and tracing. Selenium is the better fit for real Safari, Appium mobile, Ruby teams and large suites that already run reliably.
Most Playwright vs Selenium articles you’ll find are written by companies that sell a cloud browser grid. Both frameworks run on their grids, so the comparison tends to end in a tie and a free trial. We don’t sell a grid. Our QA automation team in Irving, Texas builds and maintains suites in both frameworks for mid-market clients, and the right answer is rarely a tie.
It’s usually one of three outcomes. Standardize new work on Playwright. Keep Selenium where it earns its place. Or run both for a while, on purpose, with an end date.
This guide covers the real differences, what changed in 2026, what each costs to run, where AI test agents fit and how to decide whether an existing Selenium suite is worth migrating at all. Every version number and feature claim links to the project’s own docs, so you can check them.
What’s the difference between Playwright and Selenium?
Selenium is a browser automation project built on the W3C WebDriver standard, with official bindings for Java, Python, C#, JavaScript and Ruby. Playwright is Microsoft’s open-source framework with its own browser builds, built-in test runner, auto-waiting and tracing for JavaScript, TypeScript, Python, Java and .NET.
The deeper difference is philosophy. Selenium gives you a driver and lets you assemble the rest. You pick the test runner (JUnit, TestNG, pytest, NUnit), the reporting, the wait strategy and the grid. Playwright ships most of that in one box, including parallel test files by default and sharding across machines with one flag.
Neither approach is wrong. A bank with fifteen years of Java tooling, a homegrown reporting dashboard and a Grid that its infrastructure team already patches every quarter might genuinely prefer assembling its own stack. A product team shipping twice a day usually doesn’t want to.
Both are free. Both use the Apache-2.0 license, and Selenium’s repository carries the same one.
| Factor | Playwright | Selenium |
|---|---|---|
| First released | 2020, by Microsoft | 2004, community project |
| Official languages | JavaScript/TypeScript, Python, Java, .NET | Java, Python, C#, JavaScript, Ruby |
| Browsers | Chromium, Firefox and WebKit builds, plus branded Chrome and Edge | Chrome, Edge, Firefox and real Safari through each vendor’s driver |
| Waiting | Auto-waits for elements to be actionable | You write explicit waits |
| Test runner | Built in (Playwright Test) | Bring your own |
| Parallel runs | Built-in workers and sharding | Selenium Grid or a cloud grid |
| Debugging | Trace Viewer, codegen, UI mode | Logs, screenshots, your own tooling |
| Mobile | Device emulation only | Real devices through Appium |
| AI tooling | Playwright MCP and Test Agents | Third-party only |
| License | Apache-2.0 | Apache-2.0 |
Playwright vs Selenium at a glance, November 2026.
What changed in 2026?
Both projects ship monthly. Playwright 1.64 added WebMCP testing in October 2026 and already had AI test agents. Selenium 4.52 shipped October 29, 2026 with more WebDriver BiDi work. Microsoft’s cloud service is now Playwright Workspaces in Azure App Testing.
Here’s the state of play as of this update, straight from each project’s release page.
- Playwright 1.64.1 is the latest release (October 14). Version 1.64.0 on October 7 added WebMCP testing, and the release notes list Chromium 156, Firefox 157 and WebKit 27.2.
- Selenium 4.52.0, out October 29. The previous two landed September 30 and October 9, and every one of the three on Selenium’s release page includes BiDi work across its language bindings.
- WebDriver BiDi is still a W3C Working Draft, the latest dated October 8, 2026. Not a final standard yet.
- Microsoft Playwright Testing has a new name. The old docs now land on Playwright Workspaces, a managed cloud browser service inside Azure App Testing, with Entra ID sign-in and a remote MCP server.
- And Cypress? Version 16.2.1 shipped October 28.
So the “Selenium is dead” headlines are wrong. A project shipping three releases in a month isn’t dead. It’s losing new projects, which is a different problem.
Which one should you choose?
Choose by constraint, not popularity. Real Safari, native mobile, Ruby or a large working suite point to Selenium. A new web suite in JavaScript, TypeScript, Python, Java or .NET points to Playwright. A front-end-only JavaScript team can also consider Cypress.

We run this as a short checklist with clients. The first constraint that applies usually decides it.
| If your situation is… | Default choice | Why |
|---|---|---|
| You must certify on real Safari on macOS | Selenium | It drives the safaridriver that ships with macOS; Playwright runs a patched WebKit build |
| You test native iOS or Android apps too | Selenium + Appium | One WebDriver skill set across web and mobile |
| Your test team writes Ruby | Selenium | Ruby is an official Selenium binding, not a Playwright one |
| 500+ stable Selenium tests with low flakiness | Keep Selenium | Migration cost buys you little |
| New web app, any of Playwright’s four languages | Playwright | Less code for waits, runner, parallelism and tracing |
| Flaky Selenium suite nobody trusts | Pilot Playwright | Auto-wait and traces attack the two biggest flake sources |
| Front-end developers own the tests, JS only | Playwright or Cypress | Both fit; Playwright handles new tabs and WebKit more easily |
| You want AI agents to draft and repair tests | Playwright | First-party MCP server and Test Agents |
A decision guide for mid-market QA teams, by constraint.
Notice what’s missing from that table. Team preference for the shinier tool. We’ve watched teams burn a quarter rewriting a healthy suite because a new hire liked Playwright better, and the release calendar didn’t care.
Is Playwright faster than Selenium?
Usually, in practice, but published speed numbers are mostly unsourced vendor benchmarks. The bigger gain is fewer flaky failures and reruns, because Playwright waits for elements automatically and runs tests in parallel without extra infrastructure.
Search this question and you’ll see figures like 30% to 40% faster, or one suite finishing in half the time. We couldn’t trace those numbers to a reproducible benchmark, so we won’t repeat them. Raw speed depends on your app, your network and how the old tests were written.
What we can say from client work is where the time actually goes. In a typical struggling Selenium suite, the slow part isn’t the protocol. It’s the hard-coded five-second sleeps someone added in 2019 to get a build green, the automatic retries that quietly run every flaky test two or three times, and a shared grid that leaves jobs sitting in a queue while another team’s nightly run finishes. Playwright removes the first two by design. Its locators wait until an element is visible, enabled and stable before acting.
Can a well-written Selenium suite with good explicit waits be fast and stable? Absolutely. We maintain a few. They just take more discipline to keep that way, and discipline erodes when the person who wrote the wait helpers leaves.
Does Playwright test real Safari and mobile devices?
No. Playwright runs its own patched WebKit build, which is close to Safari but not branded Safari, and its mobile support is device emulation. Selenium drives real Safari on macOS and reaches real iOS and Android devices through Appium.

The Playwright browser docs are upfront about it. Branded Safari isn’t supported because Playwright “relies on patches” to WebKit, and mobile testing means emulating devices like an iPhone 12 or Pixel 5 in a desktop browser.
Selenium takes the other route. The Selenium Safari docs note that safaridriver ships with macOS and only needs enabling. For Safari on iOS, they point you to Appium.
Does it matter? For most B2B web apps, running the suite against WebKit, Chromium and Firefox on every pull request catches the layout and behavior bugs that actually reach users, and real Safari adds little beyond that. For a consumer checkout where a big slice of revenue comes from iPhones, we’d still run a smoke pass on real Safari and real devices, whatever framework holds the main suite.
Does WebDriver BiDi close the gap?
Partly. WebDriver BiDi gives Selenium two-way, event-driven browser control similar to what Playwright has, such as network interception and console events. Selenium is moving its whole implementation onto it, but the W3C spec is still a Working Draft.
Classic WebDriver is request and response. Your test asks, the browser answers. BiDi keeps a connection open so the browser can push events back, which is what makes things like listening to console errors or intercepting network calls practical.
The Selenium BiDi documentation says the project is moving from Classic to BiDi and that Chrome DevTools Protocol support is temporary. It’s a real shift. Just not a finished one, and some features still behave differently by language binding.
Our read? BiDi makes Selenium a better Selenium. It doesn’t hand Selenium a built-in runner, tracing or auto-wait, so it narrows the gap without closing it.
What does each one cost to run?
Both frameworks are free. The real costs are engineer time to write and maintain tests, the infrastructure that runs them in parallel and retraining. Playwright usually cuts maintenance and grid costs; Selenium avoids migration and retraining costs if the suite already works.
License cost is zero either way, so the comparison lives in four buckets.
- Maintenance hours. This is the big one. Flaky tests cost engineer time on every run, and more again when people stop trusting red builds.
- Parallel infrastructure, which comes in three flavors. A self-hosted Selenium Grid that someone has to patch, a commercial cloud grid billed by parallel sessions, or Playwright’s own sharding on the CI runners you already pay for.
- Cloud browsers for Playwright, if you want them, through Playwright Workspaces in Azure or most third-party grids.
- Retraining. A Java tester who knows Selenium will be productive in Playwright for Java quickly, but the test design habits (locators by role, no sleeps, isolated browser contexts) take longer to stick.
One quiet saving people miss. Playwright’s Trace Viewer records a step-by-step trace of each failure with DOM snapshots and network calls. On teams we support, that cuts a lot of the “can’t reproduce locally” back-and-forth, and that time never shows up on an invoice.
Bias disclosed. We get paid either way, whether you migrate or we help you stabilize what you have. That’s why we’d rather tell you not to migrate than sell you a rewrite you don’t need.
Where does Cypress fit?
Cypress is a strong choice for front-end JavaScript teams testing a single web app, with an excellent interactive runner. It’s weaker than Playwright for flows that open new tabs or windows, and it doesn’t support Python, Java or .NET.
Cypress is still very much alive. The State of JS 2024 survey counted 3,603 respondents using it at work, close behind Playwright’s 3,674 and far ahead of Selenium’s 1,130.
Careful with that survey, though. Its respondents are JavaScript developers, which tilts the result away from Selenium’s Java, Python and C# users. The same goes for npm. In the last week of October 2026, the npm registry logged about 154 million downloads of playwright against roughly 2.2 million of selenium-webdriver. Huge gap. Real momentum, but not market share, and anyone quoting npm downloads as proof that Selenium has lost the enterprise is reading a JavaScript popularity chart as if it covered Java, Python and C# shops too. The playwright package gets pulled in by plenty of other tools, and most Selenium users never touch npm.
Can AI agents write and fix tests now?
Yes, with supervision. Playwright ships an MCP server that lets AI assistants drive a browser, plus Test Agents that plan, generate and repair tests. They speed up drafting. A human still needs to review every generated or healed test before it merges.

This is where the two projects have pulled furthest apart. Selenium has no first-party AI tooling. Playwright has three pieces.
Playwright MCP is a Model Context Protocol server that lets an assistant such as Claude, Copilot or Codex control a browser. It reads the page’s accessibility tree rather than screenshots, which makes it faster and more predictable. Then there are the Playwright Test Agents, added in version 1.56. A planner explores the app and writes a test plan, a generator turns the plan into test files and a healer reruns failing tests and patches them. Version 1.64 added testing for WebMCP, so a team can check the tools its own web app exposes to AI agents.
Now the catch. Per Playwright’s own docs, the healer either makes a failing test pass or, if it decides the feature itself is broken, marks the test as skipped. Read that twice. An unattended healer can quietly turn a real regression into a skipped test.
Our rule on client projects is simple. Agents can draft and propose. People approve. Every healed test goes through code review like any other change, and a skipped test fails the pipeline until someone signs off.
Should you migrate an existing Selenium suite?
Only if the suite is flaky, slow or blocking new work. A stable Selenium suite that catches bugs and runs in a reasonable time is an asset, not debt. Freeze it, write new tests in Playwright, and retire old tests as features change.

We see three sensible outcomes, and a full rewrite is the least common of them.
| Option | When it fits | Risk |
|---|---|---|
| Keep Selenium | Stable suite, real Safari or Appium needs, Ruby team | Falling behind on tooling and AI agents |
| Freeze and grow in Playwright | Healthy suite, but new work would benefit from Playwright | Two frameworks to support for a while |
| Full migration | Flaky, slow suite people ignore, or grid costs hurting | Weeks of effort with no new coverage while it runs |
Three migration paths and when each one fits.
When migration is the right call, here’s the order we follow.
- Inventory the suite. Tag every test by business flow, flake rate over the last 30 days and last time it caught a real bug.
- Delete before you port. Tests that never fail and cover nothing critical don’t deserve a rewrite.
- Pilot one critical flow, such as login to checkout or quote to invoice, and run it in both frameworks in the same CI pipeline for two to four weeks.
- Agree a locator standard (roles, labels and test IDs) and ban fixed sleeps in the new suite from day one.
- Port in business-flow order, highest risk first, and switch each flow’s gate to Playwright only after it matches the old results.
- Retire the Selenium job when the last flow moves, and shut down the grid so you stop paying for it.
Two things break migrations more than code does. The first is a page object layer written around Selenium’s waits, where every helper hides a sleep or a retry that the new suite will quietly inherit if someone ports it line by line, and the second is test data that only works on one shared environment. Fix the data problem first. Seriously.
For Microsoft Dynamics 365 shops, the picture is a little different, and our guide to Dynamics 365 test automation covers why. If you’re still deciding how much testing to own in-house, our piece on QA vs quality engineering is a good place to start, and so is tracking DORA metrics to see whether faster tests are actually shortening your lead time.
Who we are
Upen Group is an engineering and digital transformation company headquartered in Irving, Texas. Our quality engineering teams build, stabilize and migrate test automation in Playwright and Selenium for mid-market companies across the Dallas-Fort Worth area and beyond. We don’t resell a browser grid, so our recommendation follows your constraints, not a subscription.
The short answer
Playwright is the better default for new web test automation in 2026. Selenium is still the right tool for real Safari, Appium mobile, Ruby teams and large suites that already work. The expensive mistake isn’t choosing the wrong framework. It’s rewriting a healthy suite, or letting AI agents heal tests nobody reviews.
Not sure whether your Selenium suite is worth migrating? Ask our test automation engineers for a framework assessment. We’ll review flake rates, run time and coverage, and tell you whether to keep, freeze or migrate.
Playwright and Selenium questions teams keep asking
Is Selenium dead in 2026?
Not even close. Selenium 4.52.0 shipped on October 29, 2026, the third release in about a month, and the project is actively moving to WebDriver BiDi. It’s losing new web projects to Playwright, but it still sits under plenty of long-running enterprise suites.
Can Playwright fully replace Selenium?
For most web testing, yes. Two gaps remain, though. Playwright doesn’t drive branded Safari, and it can’t test native mobile apps, which is where Selenium plus Appium still wins. Teams with heavy iPhone traffic tend to keep a small real-Safari smoke suite alongside a Playwright main suite.
Which languages does Playwright support?
Four official ones. JavaScript and TypeScript, Python, Java and .NET. Selenium adds Ruby to that list.
How long does a Selenium to Playwright migration take?
It depends far more on suite health than size. A few hundred clean tests with good page objects move much faster than a smaller suite full of sleeps and shared test data. We scope it after a short inventory, and we regularly recommend deleting a chunk of tests instead of porting them. Run both frameworks side by side in CI during the move so nobody loses coverage.
Do we still need Selenium Grid if we switch?
Probably not. Playwright runs test files in parallel with workers and splits suites across machines with sharding, so the CI runners you already pay for usually cover it. Teams that want managed browsers can use Playwright Workspaces in Azure App Testing or a commercial grid.
Can AI write our Playwright tests?
It can draft them. Playwright’s planner and generator agents turn a plan into test files, and the healer repairs failures, but it can also mark a test as skipped. Review every agent change in a pull request before it merges.
Is Playwright free for commercial use?
Yes, it’s Apache-2.0 licensed and maintained by Microsoft. Selenium uses the same license. You pay only for infrastructure, such as cloud browsers or CI minutes, and the engineering time to build and maintain tests.
