CDPSession.detach() 方法
¥CDPSession.detach() method
将 cdpSession 与目标分离。一旦分离,cdpSession 对象将不会触发任何事件,也不能用于发送消息。
¥Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages.
签名
¥Signature
class CDPSession {
abstract detach(): Promise<void>;
}
Returns:
Promise<void>