Connection.createSession() 方法
🌐 Connection.createSession() method
语法
🌐 Signature
class Connection {
createSession(targetInfo: Protocol.Target.TargetInfo): Promise<CDPSession>;
}
参数
🌐 Parameters
范围 🌐 Parameter | 类型 🌐 Type | 描述 🌐 Description |
|---|---|---|
targetInfo | Protocol.Target.TargetInfo | 目标信息 🌐 The target info |
返回:
Promise<CDPSession>
创建的 CDP 会话
🌐 The CDP session that is created