Skip to main content
Version: 22.13.0

BrowserContext.isIncognito() method

Warning: This API is now obsolete.

In Chrome, the default browser context can also be "incognito" if configured via the arguments and in such cases this getter returns wrong results (see Also, the term "incognito" is not applicable to other browsers. To migrate, check the default browser context instead: in Chrome all non-default contexts are incognito, and the default context might be incognito if you provide the --incognito argument when launching the browser.

Whether this browser context is incognito.

In Chrome, the default browser context is the only non-incognito browser context.


class BrowserContext {
abstract isIncognito(): boolean;