puppeteer/docs/api/puppeteer.browsercontext.isincognito.md

405 B

sidebar_label
BrowserContext.isIncognito

BrowserContext.isIncognito() method

Whether this browser context is incognito.

The default browser context is the only non-incognito browser context.

Signature:

class BrowserContext {
  abstract isIncognito(): boolean;
}

Returns:

boolean