Selenium

Driving real browsers for tests and scraping.

Selenium is taught here in 12 lessons, running from WebDriver setup through to Selenium Grid, Docker and CI. Each lesson takes one topic, shows the working code, and links onward to the next, so the course can be read straight through in order.

TrackAI & Intelligent Development
Lessons12
LevelBeginner to intermediate
Reading timeabout 3 hours
PrerequisitesHelpful, but not required: Vibe Coding

Lessons

  1. WebDriver setupHow Selenium actually drives a browser: the client library, the driver binary and the browser, plus how to get a session running reliably.
  2. Locators and waitsChoosing stable locators, and the difference between implicit and explicit waits that causes most flaky Selenium suites.
  3. A real test exampleA complete login flow test with a page object, explicit waits and assertions that fail for a useful reason.
  4. Browser options and headless executionConfigure Chrome and Firefox through options objects: headless mode, window size, download directories, profiles and per-environment settings.
  5. Common element interactionsClick, type, clear, select from dropdowns, upload files, and read text, attributes and state from the elements you find.
  6. Alerts, frames and windowsHandle native dialogs, move between frames and back, and track the tab you actually want - plus the stale element error that follows all three.
  7. Advanced user actions with ActionChainsHover, drag, hold, and send keyboard chords, and understand why every chain must end in perform().
  8. JavaScript execution and CDPUse execute_script for what WebDriver cannot reach, and the Chrome DevTools Protocol for network and console data.
  9. Cookies, storage and session reuseRead and write cookies, work with local and session storage, and save an authenticated session so most tests skip the login form.
  10. Screenshots, logs and debugging flaky testsCapture the artefacts that make a CI failure diagnosable - screenshots, page source, browser logs, stack traces - and use them to find the real cause.
  11. Structuring a suite: page objects, pytest and parallelismOrganise a growing Selenium suite with page objects, fixtures and markers, then run it in parallel without the tests fighting each other.
  12. Selenium Grid, Docker and CIRun the same suite against a Grid of browser nodes, containerise the setup, and keep the reporting and artefacts a pipeline needs.

More in AI & Intelligent Development

AI Basics AI Agents Math for AI Machine Learning scikit-learn TensorFlow PyTorch Natural Language Processing LangChain Ollama OpenCV Codex Claude Code OpenCode Vibe Coding Playwright

FAQ

How long does the Selenium course take?
It has 12 lessons, about 3 hours of reading. Expect roughly twice that if you type out and run every example.
Do I need prior experience for Selenium?
Not strictly. It helps to have read Vibe Coding first, because some lessons build on it, but every lesson explains its own assumptions.
What should I read after Selenium?
Continue with Playwright (13 lessons), the next course in AI & Intelligent Development.