Selenium from zero: install, driver set-up and a first script that opens a page
Install Selenium for Python or Java, let Selenium Manager find the browser driver, and run a first script that opens a page, reads its title and closes the browser.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a remote control and its batteries. The remote sends the command. The batteries must match the device. A charger that picks the right batteries saves you a trip to the shop. The first button press proves the set works.
Tom wants a controlled first browser run before testing synthetic Daily List behavior. A Selenium binding is the language package used by test code. helps resolve browser/driver dependencies when a driver is not provided. A establishes a session, performs a small stated check and releases it.
The remote-control picture distinguishes the Python library, and browser. They are separate components with separate version and environment requirements.
The picture has a limit. Manager can reuse cached artifacts or use offline configuration; it does not always download on every run. A browser session that starts does not prove that the application's business behavior is correct.
(SYNTHETIC / TRAINING ONLY: Daily List and every named person are invented.)
PLAIN WORDS · 2 in this section
- selenium
- A free tool that drives a web browser for checks.
- reuse
- to use something again
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 Establish a controlled Selenium browser with a declared oracle and reliable cleanup.
- Install
- Match
- Press
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The remote | The Selenium library |
| The batteries | The browser driver |
| The smart charger | Selenium Manager |
| The first button press | The first script |
WHERE THIS PICTURE STOPS
- Library, driver and browser are separate components; first-run success is a narrow smoke check.
- Manager can reuse cache/provisioned artifacts; offline mode cannot create an absent compatible artifact.
HOOK
Remote, batteries, charger.
TELL A FRIEND
A remote: library, driver, first press.
OFTEN MIXED UP WITH How the web works, for testers. That topic explains how the web works. This one installs Selenium and opens a page from code.
Sources & standards — 3 sources
- Implementation-specific
Selenium Manager ↗ — Selenium project · Fallback usage; automated driver/browser management; cache, offline, provided drivers and configuration (selected actual primary passages read 7 November 2026; live publisher documentation; no fixed edition claimed).
Selected actual primary passages read on the access date, not every linked guide. Live documentation, tagged package metadata and W3C2018 have distinct scopes. Daily List rules, people, identifiers and observations are synthetic. Educational sequences do not claim installation, vendor-package or live-app execution.
- Implementation-specific
Python package metadata — Selenium 4.52.0 ↗ — Selenium project · Tagged pyproject.toml: project requirements and Python minimum (selected actual primary passages read 7 November 2026; Selenium 4.52.0 Python source tag).
Selected actual primary passages read on the access date, not every linked guide. Live documentation, tagged package metadata and W3C2018 have distinct scopes. Daily List rules, people, identifiers and observations are synthetic. Educational sequences do not claim installation, vendor-package or live-app execution.
- Implementation-specific
Write your first Selenium script ↗ — Selenium project · Selected startup, commands and quit sequence (selected actual primary passages read 7 November 2026; live publisher documentation; no fixed edition claimed).
Selected actual primary passages read on the access date, not every linked guide. Live documentation, tagged package metadata and W3C2018 have distinct scopes. Daily List rules, people, identifiers and observations are synthetic. Educational sequences do not claim installation, vendor-package or live-app execution.
PRACTISE AND KEEP
Sources for this topic — 3 sources
- Implementation-specific
Selenium Manager ↗ — Selenium project · Fallback usage; automated driver/browser management; cache, offline, provided drivers and configuration (selected actual primary passages read 7 November 2026; live publisher documentation; no fixed edition claimed).
Selected actual primary passages read on the access date, not every linked guide. Live documentation, tagged package metadata and W3C2018 have distinct scopes. Daily List rules, people, identifiers and observations are synthetic. Educational sequences do not claim installation, vendor-package or live-app execution.
- Implementation-specific
Python package metadata — Selenium 4.52.0 ↗ — Selenium project · Tagged pyproject.toml: project requirements and Python minimum (selected actual primary passages read 7 November 2026; Selenium 4.52.0 Python source tag).
Selected actual primary passages read on the access date, not every linked guide. Live documentation, tagged package metadata and W3C2018 have distinct scopes. Daily List rules, people, identifiers and observations are synthetic. Educational sequences do not claim installation, vendor-package or live-app execution.
- Implementation-specific
Write your first Selenium script ↗ — Selenium project · Selected startup, commands and quit sequence (selected actual primary passages read 7 November 2026; live publisher documentation; no fixed edition claimed).
Selected actual primary passages read on the access date, not every linked guide. Live documentation, tagged package metadata and W3C2018 have distinct scopes. Daily List rules, people, identifiers and observations are synthetic. Educational sequences do not claim installation, vendor-package or live-app execution.
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.