puppeteer/website/versioned_docs/version-22.6.0/api/puppeteer.browsercontext.targets.md

20 lines
337 B
Markdown
Raw Normal View History

---
sidebar_label: BrowserContext.targets
---
# BrowserContext.targets() method
Gets all active [targets](./puppeteer.target.md) inside this [browser context](./puppeteer.browsercontext.md).
2022-10-24 14:31:12 +00:00
#### Signature:
```typescript
class BrowserContext {
abstract targets(): Target[];
}
```
**Returns:**
[Target](./puppeteer.target.md)\[\]