Playwright vs Selenium: a decision table for SaaS teams (and when Selenium stays)

Decision table for 10–200 person teams: when to pick Playwright, when Selenium stays, and a three-step migration rule that avoids a rewrite fantasy.

You are not picking a winner for the internet. You are picking what the next critical-path test on your SaaS product runs on — usually in a team of 10–200 people that already has some Selenium.

This page is a decision table plus an explicit “keep Selenium” list. For a copy-paste PR gate once you choose Playwright, use the Playwright CI skeleton. Tool docs: Playwright, Selenium.

What you are actually choosing

Dimension What it means on a product team
PR signal Can one money path fail the merge in CI?
Maintenance Who owns waits, selectors, and browser installs?
Existing estate Do you already pay for a Grid and a Java/C# suite?
Language Are new tests written where the app team already works?

Feature checklists (“auto-wait”, “trace viewer”, “Grid”) matter only after those four. If you cannot name the PR signal, neither tool will save you.

Decision table for teams of 10–200

Situation Prefer Why
New E2E for a Node/TS (or Python) SaaS app; CI on GitHub/GitLab Playwright One runner, first-class traces, fits a thin PR gate
Need WebKit/Chromium/Firefox in CI without babysitting Safari hosts Playwright Browser binaries and projects are part of the tool
You already run a stable Selenium Grid (Java/C#) that ops understands Selenium (keep) Sunk cost and language lock beat a rewrite
Compliance or vendor contract pins you to a specific WebDriver stack Selenium (keep) Changing drivers is a change-control problem, not a taste problem
Greenfield money-path tests while a large Selenium suite still runs Both Freeze Selenium; put new paths on Playwright
2 000+ Selenium tests, low flake, no rewrite budget this year Selenium (keep) + freeze Rewrite cost is the bug; do not start a second suite for vanity
Heavy native mobile (Appium) is the main risk Neither as the answer That is a mobile stack decision; browser E2E is secondary

Use the table row that matches your repo this quarter. Do not average the rows into “we’ll evaluate both.”

When Selenium should stay

Keep Selenium as the system of record when at least two of these are true:

  1. Grid and language are paid for — Java or C# WebDriver suite, shared Grid, people who can debug sessions today.
  2. The suite is mostly stable — flake is annoying, not the reason merges are blocked every day.
  3. Rewrite has no owner — nobody has a quarter to port selectors and data setup.

In that case the wrong move is a big-bang Playwright migration. The right move is to stop adding Selenium for new money paths and to put those paths on Playwright (or to accept that browser E2E stays Selenium until budget appears).

Selenium should not stay as the default for brand-new CI gates on a TS/Node SaaS app just because “we used WebDriver in 2019.” That is habit, not a constraint.

Three-step migration without a rewrite fantasy

  1. Freeze — no new Selenium tests for greenfield product paths. Bugs in old Selenium tests still get fixed.
  2. Gate — add a thin Playwright job on the critical path (config + Actions skeleton). One browser project is enough for the first month.
  3. Retire — delete or archive a Selenium area only when its flake/maintenance cost for a quarter exceeds the cost of rewriting that area. Measure in engineer-days, not in blog posts.

Dual-run both suites only while the Playwright gate covers the same money path. Then turn the Selenium job off for that path. Parallel forever is how you pay twice.

What this comparison is not

  • Not a Cypress bake-off. If your team is already on Cypress and green, stay until you have a concrete CI or flake reason to move.
  • Not a native-mobile guide. Appium and device farms are a different decision.
  • Not a claim that Playwright makes testing “done.” API authz and load still need their own layers.

If you want a written keep / migrate / dual-run call on your current suite, request the free 20-minute check-up. You get a short note mapped to the table above — not a tool sales pitch. Scoped automation work: services.

Want a second pair of eyes on your system?

Assertwise lab: Playwright CI job summary card
Lab sample CI layout ? not a client pipeline.

Request the free 20-minute check-up: short written findings, non-intrusive, no obligation.

Free 20-min check-up →

Related: Playwright flake quarantine in CI.