You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/api.md
+16-18
Original file line number
Diff line number
Diff line change
@@ -331,7 +331,7 @@ If URLs are specified, only cookies that affect those URLs are returned.
331
331
Creates a new page in the browser context.
332
332
333
333
#### browserContext.pages()
334
-
- returns: <[Promise]<[Array]<[Page]>>> Promise which resolves to an array of all open pages. Non visible pages, such as `"background_page"`, will not be listed here. You can find them using [target.page()](#targetpage).
334
+
- returns: <[Promise]<[Array]<[Page]>>> Promise which resolves to an array of all open pages. Non visible pages, such as `"background_page"`, will not be listed here. You can find them using [chromiumTarget.page()](#chromiumtargetpage).
> **NOTE** This includes target changes in incognito browser contexts.
3561
3560
3562
3561
3563
3562
#### event: 'targetcreated'
3564
-
- <[Target]>
3563
+
- <[ChromiumTarget]>
3565
3564
3566
3565
Emitted when a target is created, for example when a new page is opened by [`window.open`](https://developer.mozilla.org/en-US/docs/Web/API/Window/open) or [`browserContext.newPage`](#browsercontextnewpage).
3567
3566
3568
3567
> **NOTE** This includes target creations in incognito browser contexts.
3569
3568
3570
3569
#### event: 'targetdestroyed'
3571
-
- <[Target]>
3570
+
- <[ChromiumTarget]>
3572
3571
3573
3572
Emitted when a target is destroyed, for example when a page is closed.
3574
3573
3575
3574
> **NOTE** This includes target destructions in incognito browser contexts.
3576
3575
3577
3576
#### chromiumBrowser.browserTarget()
3578
-
- returns: <[Target]>
3577
+
- returns: <[ChromiumTarget]>
3579
3578
3580
3579
Returns browser target.
3581
3580
3582
3581
#### chromiumBrowser.pageTarget(page)
3583
3582
-`page` <[Page]> Page to return target for.
3584
-
- returns: <[Target]> a target given page was created from.
3585
-
3586
-
#### chromiumBrowser.serviceWorker(target)
3587
-
-`target` <[ChromiumTarget]> Target to treat as a service worker
3588
-
- returns: <[Promise]<[ChromiumWorker]>>
3589
-
3590
-
Attaches to the service worker target.
3583
+
- returns: <[ChromiumTarget]> a target given page was created from.
0 commit comments