Skip to main content

Module session

Module session 

Source
Expand description

Helpers around target attach / detach for one-shot CDP sessions.

Functions§

attach_to_target
call
Convenience: send a CDP command with no params, returning the JSON result.
call_with_timeout
Convenience: send a CDP command and wait up to timeout for it. Used by callers that need an explicit ceiling rather than the connection’s default.
close_target
detach_from_target
open_blank_target
Attach to a fresh target and return its targetId + sessionId.