Return the browser binary paths cdp/find-chrome probes on this machine, in priority order (Chrome, Chromium, Brave, Edge). Entries are candidates — most will not exist.
Close the browser: ask it to shut down via Browser.close, close the websocket, kill the spawned process if this connection launched it, and delete the temp profile dir if cdp/launch created it.
Connect to an already-running browser. Accepts a ws:// debugger URL, or an http:// devtools address (e.g. "http://localhost:9222") whose /json/version endpoint is used to discover it.
Return the path of a Chrome-compatible browser binary, or nil if none is found. Checks the SEMA_CHROME env var first, then well-known install locations on macOS, Linux, and Windows (see cdp/browser-candidates).
Launch a Chrome-compatible browser with remote debugging and return a connection. Options map: :headless (default #t), :chrome (binary path), :args (extra CLI args), :user-data-dir (default: fresh dir under the system temp dir).
Register a handler called with each matching event map as it arrives, and return a handler id for cdp/off!. Events are only received while a cdp/send, cdp/wait-event, or cdp/pump is pumping the connection. Scoped to the session when `target` is one, otherwise connection-wide. Handlers may call cdp/send themselves.
Send a CDP command and return its result map. `target` is a connection or a session (from cdp/attach!). Optional: params map, then options map {:timeout ms}. Raises on a CDP error response, including the method, code, and message.
Wait for an event, consuming it from the buffer, and return the event map. Checks already-buffered events first. Options: :timeout ms (default 30000), :pred (event map -> bool). Scoped to the session when `target` is one.