Protocol Base Types
Base types and structures for Chrome DevTools Protocol commands, responses, and events.
Base Types
pydoll.protocol.base
EmptyParams
Bases: TypedDict
Empty parameters for commands.
EmptyResponse
Bases: TypedDict
Empty response for commands.
Command
Bases: TypedDict, Generic[T_CommandParams, T_CommandResponse]
Base structure for all commands.
| ATTRIBUTE | DESCRIPTION |
|---|---|
method |
The command method name
TYPE:
|
params |
Optional dictionary of parameters for the command
TYPE:
|
sessionId |
Optional target session identifier (flattened sessions)
TYPE:
|
ResponseError
Bases: TypedDict
Error payload the browser sends in place of a result.
| ATTRIBUTE | DESCRIPTION |
|---|---|
code |
JSON-RPC style error code (-32000 for domain errors, -32601 unknown method...)
TYPE:
|
message |
Human readable reason
TYPE:
|
data |
Optional extra detail attached by the browser
TYPE:
|
Response
Bases: TypedDict, Generic[T_CommandResponse]
Base structure for all responses.
Exactly one of result or error is present for a given command id.
| ATTRIBUTE | DESCRIPTION |
|---|---|
id |
The ID that matches the command ID
TYPE:
|
result |
The result data for the command
TYPE:
|
error |
Error payload when the browser rejected the command
TYPE:
|
sessionId |
Optional target session identifier (flattened sessions)
TYPE:
|
CDPEvent
Bases: TypedDict, Generic[T_EventParams]
Base structure for all events.