Skip to main content
Version: 24.38.0

Page.createCDPSession() 方法

🌐 Page.createCDPSession() method

创建附加到页面的 Chrome Devtools 协议会话。

🌐 Creates a Chrome Devtools Protocol session attached to the page.

语法

🌐 Signature

class Page {
abstract createCDPSession(): Promise<CDPSession>;
}

返回:

Promise<CDPSession>