协议基础类型
Chrome DevTools 协议命令、响应和事件的基础类型和结构。
基础类型
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:
|
Response
Bases: TypedDict
, Generic[T_CommandResponse]
Base structure for all responses.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
The ID that matches the command ID
TYPE:
|
result |
The result data for the command
TYPE:
|
CDPEvent
Bases: TypedDict
, Generic[T_EventParams]
Base structure for all events.