Skip to main content
Version: 19.8.3

CDPSession.send() method

Signature:

class CDPSession {
send<T extends keyof ProtocolMapping.Commands>(
method: T,
...paramArgs: ProtocolMapping.Commands[T]['paramsType']
): Promise<ProtocolMapping.Commands[T]['returnType']>;
}

Parameters

ParameterTypeDescription
methodT
paramArgsProtocolMapping.Commands[T]['paramsType']

Returns:

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