Playwright, Selenium and Cypress: choosing a tool
Compare three browser test tools by how they drive the browser, how they wait and what they cost a team. Choose by running the same small trial, not by fashion.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: choosing between three cars by the journeys you make. A small car is easy to park in town. A big car carries a family. A van carries goods. None is best for everyone. The right car depends on the roads you drive and what you carry.
Daily List is a to-do list app. Mei asks Tom which tool should test the website in a browser. Three names come up: Playwright, Selenium and Cypress.
The picture has a limit. A car is one finished thing. A test tool keeps changing. A fact that is true this year may be wrong next year.
What it is: Playwright is a free library from Microsoft that drives a real browser from outside the page. It drives Chromium, Firefox and WebKit, and it comes with its own . It waits until a part is ready before it acts. Selenium is older and wider. It speaks the , a standard set of commands for controlling a browser from outside, and each browser needs a driver program. Cypress is an in-browser test runner. Its test code runs inside the browser, in the same loop as the page, and its tests are written in JavaScript or TypeScript. The nearest neighbour is picking a name because a blog likes it. A tool decision record is the note that says which tool was chosen, from a trial, and when to look again.
Why it matters: A tool choice is a long bet on training, plugins and hiring. If Mei picks a name she only likes, the team may spend a year on the wrong tool. Daily List's Help tab, or a language nobody else reads, can rule a tool out. Naming the journeys first, then trying all three, keeps the choice tied to the work.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 6 in this section
- playwright
- a free Microsoft tool that drives a browser for tests
- selenium
- A free tool that drives a web browser for checks.
- cypress
- A free tool that drives a web browser for checks.
- chromium
- the open-source browser engine behind Google Chrome
- webkit
- The browser engine behind Safari. Playwright can drive it.
- typescript
- JavaScript with added labels for the kinds of data
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Choosing a browser test tool by the journeys, team and old suite, using a fair trial and a written record.
- List the journeys
- Run the same trial
- Compare facts
- Write the record
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Three cars | Playwright, Selenium and Cypress |
| The journeys you make | The user journeys to test |
| A test drive on the same road | The same trial in each tool |
| The logbook | The tool decision record |
WHERE THIS PICTURE STOPS
- A car is a finished thing. A tool keeps changing, so a fact can go stale.
- A test drive is short. A team lives with a tool for years.
- A car buyer chooses alone. A tool choice affects the whole team.
HOOK
Same road, same help, write it down.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Ask which tool fits the journeys, the team and the browsers, then try all three on the same journeys and write down why.
| In the trick | What it stands for |
|---|---|
| journeys | sign up, add a task and share a list |
| team | what the team knows |
| browsers | which browsers users have |
TELL A FRIEND
Choosing between three cars by the journeys you make. Pick the tool by evidence for your own team.
OFTEN MIXED UP WITH Choosing test tools. The tool lesson gives a general method for choosing any tool. This lesson applies it to three browser test tools.
Sources & standards — 4 sources
- Market practice
WebDriver (Selenium documentation) ↗ — Selenium project · Reviewed 6 November 2026: Complete extracted primary article; examples inspected, not executed. See v45 source analysis for version scope and documented source ambiguities; no upstream run claimed.
Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.
- Market practice
WebDriver, World Wide Web Consortium Recommendation ↗ — World Wide Web Consortium · WebDriver is a World Wide Web Consortium Recommendation that defines a remote control interface for browsers (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Trade-offs in Cypress (Cypress documentation) ↗ — Cypress · Reviewed 6 November 2026: Complete extracted primary article; examples inspected, not executed. See v45 source analysis for version scope and documented source ambiguities; no upstream run claimed.
Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.
- Market practice
Auto-waiting (Playwright documentation) ↗ — Microsoft (Playwright) · Reviewed 6 November 2026: Complete extracted primary article; examples inspected, not executed. See v45 source analysis for version scope and documented source ambiguities; no upstream run claimed.
Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.
PRACTISE AND KEEP
Sources for this topic — 6 sources
- Market practice
WebDriver (Selenium documentation) ↗ — Selenium project · Reviewed 6 November 2026: Complete extracted primary article; examples inspected, not executed. See v45 source analysis for version scope and documented source ambiguities; no upstream run claimed.
Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.
- Market practice
WebDriver, World Wide Web Consortium Recommendation ↗ — World Wide Web Consortium · WebDriver is a World Wide Web Consortium Recommendation that defines a remote control interface for browsers (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Trade-offs in Cypress (Cypress documentation) ↗ — Cypress · Reviewed 6 November 2026: Complete extracted primary article; examples inspected, not executed. See v45 source analysis for version scope and documented source ambiguities; no upstream run claimed.
Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.
- Market practice
Auto-waiting (Playwright documentation) ↗ — Microsoft (Playwright) · Reviewed 6 November 2026: Complete extracted primary article; examples inspected, not executed. See v45 source analysis for version scope and documented source ambiguities; no upstream run claimed.
Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.
- Market practice
cy.origin() ↗ — Cypress · cypress-docs-trade-offs (one browser at a time; multiple tabs through a plugin only); r8a-cypress-cy-origin (cy.origin for other origins; cannot run in another tab). Search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Downloads (Selenium) ↗ — Selenium project · r8a-selenium-downloads (core bindings Java, Python, C#, Ruby, JavaScript; Kotlin via Java). Search excerpt, page not opened.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.