Skip to main content
Version: 24.38.0

Page.openDevTools() 方法

🌐 Page.openDevTools() method

为当前页面打开开发者工具并返回开发者工具页面。此方法仅在 Chrome 中可用。

🌐 Opens DevTools for the current Page and returns the DevTools Page. This method is only available in Chrome.

语法

🌐 Signature

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

返回:

Promise<Page>