Skip to main content
Version: 20.1.1

Connection.createSession() method

Signature:

class Connection {
createSession(targetInfo: Protocol.Target.TargetInfo): Promise<CDPSession>;
}

Parameters

ParameterTypeDescription
targetInfoProtocol.Target.TargetInfoThe target info

Returns:

Promise<CDPSession>

The CDP session that is created