Page.hasDevTools() 方法
🌐 Page.hasDevTools() method
如果 DevTools 已附加到当前页面,则返回 true。使用 Page.openDevTools() 获取 DevTools 页面。
🌐 Returns true if DevTools is attached to the current page. Use Page.openDevTools() to get the DevTools page.
语法
🌐 Signature
class Page {
abstract hasDevTools(): Promise<boolean>;
}
返回:
Promise<boolean>