Puppeteer 中文文档v25.8.0

Target.browserContext() 方法

获取该目标所属的浏览器上下文。

签名

class Target {
  abstract browserContext(): BrowserContext;
}

返回值:

浏览器上下文