chore(docs): remove remaining mentions of Chromium targets (#1435)
This commit is contained in:
parent
535b484637
commit
f1d97b0466
|
|
@ -392,7 +392,7 @@ context.clearPermissions();
|
||||||
#### browserContext.close()
|
#### browserContext.close()
|
||||||
- returns: <[Promise]>
|
- returns: <[Promise]>
|
||||||
|
|
||||||
Closes the browser context. All the targets that belong to the browser context
|
Closes the browser context. All the pages that belong to the browser context
|
||||||
will be closed.
|
will be closed.
|
||||||
|
|
||||||
> **NOTE** the default browser context cannot be closed.
|
> **NOTE** the default browser context cannot be closed.
|
||||||
|
|
@ -3767,11 +3767,10 @@ Only one trace can be active at a time per browser.
|
||||||
|
|
||||||
* extends: [BrowserContext]
|
* extends: [BrowserContext]
|
||||||
|
|
||||||
Chromium-specific features including targets, service worker support, etc.
|
Chromium-specific features including background pages, service worker support, etc.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const backroundPageTarget = await context.waitForTarget(target => target.type() === 'background_page');
|
const backgroundPage = await context.waitForEvent('backgroundpage');
|
||||||
const backgroundPage = await backroundPageTarget.page();
|
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- GEN:toc -->
|
<!-- GEN:toc -->
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue