跳至主要内容
版本:22.5.0

CDPSession.send() 方法

签名:

class CDPSession {
abstract send<T extends keyof ProtocolMapping.Commands>(
method: T,
params?: ProtocolMapping.Commands[T]['paramsType'][0],
options?: CommandOptions
): Promise<ProtocolMapping.Commands[T]['returnType']>;
}

参数

参数类型描述
方法T
参数ProtocolMapping.Commands[T]['paramsType'][0](可选)
选项CommandOptions(可选)

返回值

Promise<ProtocolMapping.Commands[T]['returnType']>