TOPIC 34/6018 MINNOT STARTED

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.

  1. List the journeys
  2. Run the same trial
  3. Compare facts
  4. Write the record
Same road, same help, write it down

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
Three carsPlaywright, Selenium and Cypress
The journeys you makeThe user journeys to test
A test drive on the same roadThe same trial in each tool
The logbookThe 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.

What each part of the trick stands for
In the trickWhat it stands for
journeyssign up, add a task and share a list
teamwhat the team knows
browserswhich 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
  1. 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.

    Describes Selenium WebDriver as the way to automate browsers through language bindings and browser drivers, following the World Wide Web Consortium (W3C) WebDriver standard. Vendor documentation or practitioner guidance, not a standard. · Checked 2026-11-06

    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.

  2. 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)

    Defines the HyperText Transfer Protocol (HTTP) command set of the WebDriver protocol. New Session is POST /session. Find Element is POST /session/{session id}/element. Element Click is POST on the element click path. Error codes include element not interactable and element click intercepted. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    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.

  3. 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.

    Says Cypress runs in the same run loop as the application, which helps with automatic waiting and network stubbing, and lists costs such as reaching back-end systems through Node-side commands and not driving two browsers at once. Vendor documentation or practitioner guidance, not a standard. · Checked 2026-11-06

    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.

  4. 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.

    Says Playwright runs actionability checks (visible, stable, enabled, receives events) before an action and fails with a timeout error if they do not pass in time. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-11-06

    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
  1. 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.

    Describes Selenium WebDriver as the way to automate browsers through language bindings and browser drivers, following the World Wide Web Consortium (W3C) WebDriver standard. Vendor documentation or practitioner guidance, not a standard. · Checked 2026-11-06

    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.

  2. 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)

    Defines the HyperText Transfer Protocol (HTTP) command set of the WebDriver protocol. New Session is POST /session. Find Element is POST /session/{session id}/element. Element Click is POST on the element click path. Error codes include element not interactable and element click intercepted. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    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.

  3. 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.

    Says Cypress runs in the same run loop as the application, which helps with automatic waiting and network stubbing, and lists costs such as reaching back-end systems through Node-side commands and not driving two browsers at once. Vendor documentation or practitioner guidance, not a standard. · Checked 2026-11-06

    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.

  4. 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.

    Says Playwright runs actionability checks (visible, stable, enabled, receives events) before an action and fails with a timeout error if they do not pass in time. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-11-06

    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.

  5. 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.

    cy.origin lets one test visit more than one origin; it cannot run commands in another tab or window. · Checked 2026-10-19

    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.

  6. Market practice

    Downloads (Selenium) ↗ — Selenium project · r8a-selenium-downloads (core bindings Java, Python, C#, Ruby, JavaScript; Kotlin via Java). Search excerpt, page not opened.

    Core language bindings are Java, Python, C#, Ruby and JavaScript. Says the older Selenium IDE browser extension is no longer maintained for Chrome and that the current IDE is a standalone application. Release numbers change often and are not used in the lesson. · Checked 2026-10-19

    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.