TOPIC 07/4020 MINNOT STARTED

How UI automation works: browsers, drivers and structure

See the parts behind any web user interface (UI) automation tool: the check, the driver, the browser and the page, so you can read Selenium, Playwright or Cypress.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a remote-control car. You hold a remote in your hand and press forward. The car does the moving. A camera on the car shows what is ahead, and you read the picture to decide what to press next.

A user interface (UI) check works the same way. Tom writes steps: open Daily List, click Add task, read the list. The steps are the remote. A real browser is the car. The page on the screen is what the camera shows.

In the Selenium example, a helper called a sits between the check and browser. It takes the commands and makes the browser carry them out. It sends back what the browser sees.

Leo uses the picture to explain commands and responses. Other tools can connect to a browser differently; the separate driver is the Selenium example, not a rule for every tool.

The picture has limits. A toy car stays where you put it. A real page moves and loads while you watch, so the check must learn to wait.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

PLAIN WORDS · 1 in this section
selenium
A free tool that drives a web browser for checks.

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 Seeing the parts behind any web check: the remote, the helper, the browser and the page.

  1. Write the steps
  2. Send to the driver
  3. Let the browser move
  4. Read the page
Check, driver, browser, page

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The remoteThe check with its steps
The helper boxThe browser driver
The carThe real browser
The camera pictureThe page the check reads

WHERE THIS PICTURE STOPS

  • A toy car stays still. A page loads while you watch.
  • A remote has a few buttons. A check can send many kinds of commands.
  • A camera shows everything. A check reads only what it asks for.

HOOK

Check, driver, browser, page.

REMEMBER IT THIS WAY

A rule of thumb: if you see this, think that.

If a UI check fails, usually ask which link broke: the steps, the driver, the browser or the page it read.

What each part of the trick stands for
In the trickWhat it stands for
StepsThe check with its steps
DriverThe browser driver
PageThe page the check reads

It misleads when the fault is in the app itself rather than in the chain between.

TELL A FRIEND

A remote controls a car through a helper box. controls a browser through a driver and reads the page back.

OFTEN MIXED UP WITH Reading an automated check. The reading lesson finds set-up, action and comparison. This lesson shows what carries the action into a browser.

Sources & standards — 1 source
  1. Market practice

    WebDriver, World Wide Web Consortium Recommendation ↗ — World Wide Web Consortium · Actual W3C WebDriver Recommendation Find Element algorithm section 12.2 opened 6 November 2026: no such element for absent document root or empty find result. This error is not a backend-health test.

    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.

PRACTISE AND KEEP

Sources for this topic — 7 sources
  1. Market practice

    WebDriver, World Wide Web Consortium Recommendation ↗ — World Wide Web Consortium · New Session is POST /session; Find Element is POST /session/{session id}/element; Element Click is a POST on the element click path; errors include element not interactable (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.

  2. Market practice

    Auto-waiting (Playwright documentation) ↗ — Microsoft (Playwright) · Playwright runs actionability checks (visible, stable, enabled, receives events) before an action and fails with a timeout if they do not pass (search excerpt, page not opened)

    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.

  3. Market practice

    Isolation (Playwright documentation) ↗ — Microsoft (Playwright) · Each Playwright test gets its own browser context, a clean-slate environment like an incognito profile (search excerpt, page not opened)

    Says Playwright gives each test its own browser context, a clean-slate environment like an incognito profile that is fast to create and fully isolated. Vendor documentation. 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.

  4. Market practice

    Grid architecture (Selenium documentation) ↗ — Selenium · Selenium Grid 4 has a router, distributor, new session queue, nodes, a session map and an event bus; hub and node is the common setup (search excerpt, page not opened)

    Describes Grid 4 components (router, distributor, new session queue, nodes, session map, event bus), slots, and hub and node versus distributed setups. 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.

  5. Market practice

    Retry-ability in Cypress (Cypress documentation) ↗ — Cypress · Cypress commands are queued, queries retry as a chain, and commands such as click run once (primary page opened and read, 2026-10-22)

    Says Cypress commands are queued, queries retry as a chain while commands such as click run once, and an assertion mid-chain is a retry boundary. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-22

    Opened and read on 2026-10-22. The sections on queries, assertions as retry boundaries, and splitting chains explain why a passed assertion can keep a subject that the app later replaces. A new query starts from the page again. A should callback can keep related read-only checks together. This is vendor documentation, not a standard. No edition number is stated.

  6. Market practice

    Selenium Manager ↗ — Selenium project · r8a-selenium-manager (discovers, downloads and caches drivers; fallback when none is given). The stale-driver warning is from Selenium GitHub issue threads seen as search excerpts (SeleniumHQ/selenium #12957, #11302), not cited as a source. Search excerpt, page not opened.

    Selenium Manager finds the installed browser, resolves and downloads the matching driver and caches it. · 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.

  7. Market practice

    Getting started with Selenium Grid ↗ — Selenium project · r8a-selenium-grid-getting-started (standalone, hub and node, distributed; RemoteWebDriver reaches the grid by address); selenium-grid-architecture. Search excerpt, page not opened.

    Grid runs standalone, as hub and node or distributed; tests reach it through RemoteWebDriver with a grid address. · 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.