2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: BrowserContext.browser
|
|
|
|
---
|
|
|
|
|
|
|
|
# BrowserContext.browser() method
|
|
|
|
|
2023-09-19 13:03:19 +00:00
|
|
|
Gets the [browser](./puppeteer.browser.md) associated with this [browser context](./puppeteer.browsercontext.md).
|
2022-08-06 14:49:20 +00:00
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class BrowserContext {
|
2023-09-19 13:03:19 +00:00
|
|
|
abstract browser(): Browser;
|
2022-08-06 14:49:20 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
[Browser](./puppeteer.browser.md)
|