Skip to main content
Version: 23.8.0

Connection.createSession() 方法

¥Connection.createSession() method

签名

¥Signature

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

参数

¥Parameters

范围

类型

描述

targetInfo

Protocol.Target.TargetInfo

目标信息

Returns:

Promise<CDPSession>

创建的 CDP 会话

¥The CDP session that is created