CDPSession

Playwright\CDPSession\CDPSessionInterface

Communicates with a Chrome DevTools Protocol session. Sessions expose browser-specific commands not covered by the standard API. Their methods operate on the target selected when the session was created.

Methods

detach()

void

Detaches the CDPSession from the target.

function detach(): void

send()

array

Sends a message to the CDP session.

function send(string $method, array $params = []): array