mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
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()
|
||||
- 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.
|
||||
|
||||
> **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]
|
||||
|
||||
Chromium-specific features including targets, service worker support, etc.
|
||||
Chromium-specific features including background pages, service worker support, etc.
|
||||
|
||||
```js
|
||||
const backroundPageTarget = await context.waitForTarget(target => target.type() === 'background_page');
|
||||
const backgroundPage = await backroundPageTarget.page();
|
||||
const backgroundPage = await context.waitForEvent('backgroundpage');
|
||||
```
|
||||
|
||||
<!-- GEN:toc -->
|
||||
|
Loading…
Reference in New Issue
Block a user