Skip to main content
Version: 25.3.0

Page.openDevTools() 方法

🌐 Page.openDevTools() method

如果尚未打开,会为此页面打开开发者工具并返回开发者工具页面。此方法仅在 Chrome 中可用。

🌐 Opens DevTools for the this page if not already open and returns the DevTools page. This method is only available in Chrome.

语法

🌐 Signature

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

返回:

Promise<Page>