puppeteer/docs/api/puppeteer.browsercontext.targets.md

328 B

sidebar_label
BrowserContext.targets

BrowserContext.targets() method

Gets all active targets inside this browser context.

Signature:

class BrowserContext {
  targets(): Target[];
}

Returns:

Target[]