BrowserContext.isIncognito() method
Warning: This API is now obsolete.
-In Chrome, the default browser context can also be "icognito" if configured via the arguments and in such cases this getter returns wrong results (see https://github.com/puppeteer/puppeteer/issues/8836). 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.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 https://github.com/puppeteer/puppeteer/issues/8836). 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.
diff --git a/api/puppeteer.browsercontext.newpage/index.html b/api/puppeteer.browsercontext.newpage/index.html index 9d8976b991a..7062cdf9873 100644 --- a/api/puppeteer.browsercontext.newpage/index.html +++ b/api/puppeteer.browsercontext.newpage/index.html @@ -6,7 +6,7 @@Properties
Property | Modifiers | Type | Description |
---|---|---|---|
closed |
| boolean | Whether this browser context is closed. |
id |
| string | undefined | Identifier for this browser context. |
Methods
-Method | Modifiers | Description |
---|---|---|
Gets the browser associated with this browser context. | ||
Clears all permission overrides for this browser context. | ||
Closes this browser context and all associated pages. | ||
| Whether this browser context is incognito. In Chrome, the default browser context is the only non-incognito browser context. Deprecated: In Chrome, the default browser context can also be "icognito" if configured via the arguments and in such cases this getter returns wrong results (see https://github.com/puppeteer/puppeteer/issues/8836). 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 | |
Creates a new page in this browser context. | ||
Grants this browser context the given | ||
Gets a list of all open pages inside this browser context. | ||
Gets all active targets inside this browser context. | ||
Waits until a target matching the given This will look all open browser contexts. |