Skip to main content
Version: 23.2.0

CDPSession.send() 方法

¥CDPSession.send() method

签名

¥Signature

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

参数

¥Parameters

范围

类型

描述

method

T

params

ProtocolMapping.Commands[T]['paramsType'][0]

(可选的)

options

CommandOptions

(可选的)

Returns:

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