BrowserContextEvent 枚举
🌐 BrowserContextEvent enum
语法
🌐 Signature
export declare const enum BrowserContextEvent
枚举成员
🌐 Enumeration Members
成员 🌐 Member | 值 🌐 Value | 描述 🌐 Description |
|---|---|---|
TargetChanged |
| 当浏览器上下文中目标的 URL 发生变化时触发。包含一个 Target 实例。 🌐 Emitted when the url of a target inside the browser context changes. Contains a Target instance. |
TargetCreated |
| 当在浏览器上下文中创建目标时触发,例如当通过 window.open 或 browserContext.newPage 打开新页面时 🌐 Emitted when a target is created within the browser context, for example when a new page is opened by window.open or by browserContext.newPage 包含一个 Target 实例。 🌐 Contains a Target instance. |
TargetDestroyed |
| 当浏览器上下文中的目标被销毁时触发,例如当页面被关闭时。包含一个 Target 实例。 🌐 Emitted when a target is destroyed within the browser context, for example when a page is closed. Contains a Target instance. |