2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: BrowserContext.isIncognito
|
|
|
|
---
|
|
|
|
|
|
|
|
# BrowserContext.isIncognito() method
|
|
|
|
|
|
|
|
Returns whether BrowserContext is incognito. The default browser context is the only non-incognito browser context.
|
|
|
|
|
2022-10-24 14:23:24 +00:00
|
|
|
**Signature:**
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class BrowserContext {
|
|
|
|
isIncognito(): boolean;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
boolean
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
The default browser context cannot be closed.
|