Notes
Architecture
Start with architecture. Selenium sends W3C WebDriver commands to a separate driver for each browser, a web standard that browser vendors support, now extended with BiDi. Playwright keeps one fast connection to the browser and uses its own protocol with browser builds it ships. Cypress runs your test code inside the browser itself, next to the application. Almost every difference below comes from these three designs.
- Selenium: W3C WebDriver via a driver per browser (+ BiDi)
- Playwright: one persistent connection, its own protocol to patched browser builds
- Cypress: test code runs INSIDE the browser, next to the app
- design decides strengths
Languages and browsers
Reach. Selenium supports the most languages, including Java, Python, C sharp, JavaScript and Ruby, and the most real browsers, including real Safari through safari driver. Playwright supports TypeScript and JavaScript, Java, Python and dot net, and runs Chromium, Firefox and WebKit, the engine behind Safari, on every operating system. Cypress is JavaScript and TypeScript only, with Chromium based browsers and Firefox, and WebKit support marked experimental.
- Selenium: Java, Python, C#, JS, Ruby, Kotlin Chrome, Firefox, Edge, real Safari (safaridriver)
- Playwright: TS/JS, Java, Python, .NET Chromium, Firefox, WebKit
- Cypress: JavaScript/TypeScript Chromium family, Firefox (WebKit experimental)
Waiting and flakiness
Waiting. In Selenium you write explicit waits yourself, which is more work and more room for mistakes. Playwright auto waits before actions and its assertions retry. Cypress also retries queries and assertions automatically. Auto waiting removes a whole class of timing flakiness, but no tool fixes flaky test design: shared data, order dependencies and unstable environments stay your job in all three.
- Selenium: you write explicit waits (WebDriverWait)
- Playwright: auto-waiting actions + retrying expect
- Cypress: commands retry; its assertions retry the query
- all three: flaky if the test design is flaky (data, order)
Hard scenarios
Hard scenarios show the design differences. Multiple tabs or windows: Selenium and Playwright handle them; Cypress, running inside one tab, does not. Several websites in one test, such as a login on another domain: Selenium and Playwright just work; Cypress needs its origin command. Iframes, uploads and downloads work in all three, with more workarounds in Cypress. All three can make API calls for setup.
- multiple tabs/windows Sel yes · PW yes · Cy no several origins in one test Sel yes · PW yes Cy via cy.origin()
- iframes, downloads, uploads all three, Cypress needs more workarounds
- API calls in tests: all three
Speed and scale
Scale. Selenium parallelises through your test runner, such as JUnit, TestNG or pytest x dist, and distributes across machines with Selenium Grid or cloud grids. Playwright has parallel workers and sharding across machines built in and free. Cypress parallelisation is mainly through its paid cloud service or community plugins. Speed claims vary by suite, so measure on your own tests rather than trusting benchmarks.
- Selenium: Grid 4 or cloud grids; parallel via JUnit, TestNG or pytest-xdist
- Playwright: workers and --shard built in, free
- Cypress: parallel via its paid Cloud service or community plugins
- measure on YOUR suite
Developer experience
Day to day experience. Cypress's interactive runner, with time travel through each command in the real browser, is loved by front end developers. Playwright offers the trace viewer, UI mode, the inspector and codegen, which you met two episodes ago. Selenium relies more on your IDE debugger, screenshots and logs, and on whatever your framework adds. All three integrate with CI and common reporters.
- Cypress: time-travel runner in the browser, very friendly for front-end devs
- Playwright: trace viewer, UI mode, codegen, inspector
- Selenium: your IDE debugger, screenshots, logs; tools depend on your framework
Ecosystem
Selenium's ecosystem keeps it important. Many companies have large Java Selenium suites that work. Appium, the main mobile automation tool in Part six, uses the same WebDriver protocol, so the skills transfer. Cloud browser and device grids were built around it. And as a W3C standard, browser vendors maintain the drivers. That is why many job descriptions still ask for Selenium, often alongside Playwright.
- huge existing Java suites
- Appium (mobile) uses the WebDriver protocol: same skills for Part 6
- cloud device and browser grids built around it
- W3C standard: vendors own the drivers
- many jobs still list it
How to choose
A decision guide. For a new web project, Playwright is a strong default today: multiple browsers, languages, auto waiting and free parallelism. If front end developers will own the tests and the app targets Chromium based browsers, Cypress is a good fit. If you have a large Selenium suite that works, keep it; rewriting costs a lot and finds few bugs, so move only where the new tool clearly pays off. If you need real Safari or a language only Selenium supports, choose Selenium.
- new web project, any team → Playwright is a strong default
- front-end devs own tests, Chromium focus → Cypress
- big working Selenium suite → keep it; add new tests in the new tool only if worth it
- real Safari or many languages → Selenium
Common mistakes
Choosing tools badly. Picking by hype or a single benchmark. Rewriting a stable suite just because the tool is older. Ignoring who will maintain the tests and which languages they know. Running two tools for the same job forever, with half the tests in each. And deciding without a small proof of concept on your real application's hardest screens.
- choosing by hype or one blog benchmark
- rewriting a stable suite "because it's old"
- ignoring who will maintain the tests
- two tools for the same job forever
- no proof-of-concept on your real app
Say it like this
In the interview: both are good, and it depends on context. Selenium is the W3C standard, with the most languages and real browsers, Grid, a huge ecosystem, and the same protocol as Appium. Playwright brings auto waiting, tracing, built in parallelism and easy multi tab and multi origin tests. For a new web project I would run a proof of concept with Playwright, and I would not rewrite a stable Selenium suite for its own sake.
- "Both are good; it depends.
- Selenium: W3C standard, most
- languages and real browsers, Grid, big existing suites, same protocol as Appium.
- Playwright: auto-waiting, tracing, built-in parallel and multi-tab. For a new web
- project I would POC Playwright;
- I would not rewrite a stable
- Selenium suite for its own sake."