part 3 · sources checked 2026-11-20
automation protocols and drivers: cdp, webdriver, bidi
This module explains how software controls a browser through a protocol, and which traces each way of control leaves in the page.
purpose
Two tools can load the same page over CDP and leave different traces, because each attach mode controls the browser in a different way.
A system that compares many tools must also start each tool in its own way, and it must stop each tool in time. After the module, you can select an attach mode for a task, and you can test a page check for these traces with controls.
objectives
- Describe the message model of CDP, WebDriver classic, and WebDriver BiDi.
- Classify a tool by its attach mode: launch, connect, real-browser attach, WebDriver classic, BiDi, or none.
- Explain the isolated world, and why a script in one world cannot see the globals of a different world.
- List the residue classes of an attach mode, for example protocol domain side effects, injected script traces, and
navigator.webdriver. - Draw the life cycle of a driver, with its deadlines and its path to a clean stop.
- Design an adapter contract that reports "unavailable" separately from "error".
- Explain why the attach of an automation library to a tool can add the protocol residue of that library.
- Measure the protocol residue of each attach mode on a lab probe page, and build a probe set with controls.
lessons
3 of 7 published
a dim title is not yet published
- L01 three protocols
- L02 attach modes and what each leaves (not yet published)
- L03 worlds, frames, and where code runs
- L04 the driver life cycle (not yet published)
- L05 launcher backends and adapter contracts
- L06 characterize the residue of each attach mode (not yet published)
- L07 detect protocol residue (not yet published)