docs: Update Page.target deprecation message to cover broader usage. (#15108)

Co-authored-by: Piotr Paulski <[email protected]>
This commit is contained in:
Piotr Paulski
2026-06-12 11:31:08 +00:00
committed by GitHub
co-authored by Piotr Paulski
parent f0ed6cbb90
commit 15b35a349d
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1347,7 +1347,7 @@ A target this page was created from.
**Deprecated:**
Use [Page.createCDPSession()](./puppeteer.page.createcdpsession.md) directly.
To create CDP session use [Page.createCDPSession()](./puppeteer.page.createcdpsession.md) directly. To identify pages spawned by this one, use [PageEvent.Popup](./puppeteer.pageevent.md) event instead.
</td></tr>
<tr><td>
+1 -1
View File
@@ -6,7 +6,7 @@ sidebar_label: Page.target
> Warning: This API is now obsolete.
>
> Use [Page.createCDPSession()](./puppeteer.page.createcdpsession.md) directly.
> To create CDP session use [Page.createCDPSession()](./puppeteer.page.createcdpsession.md) directly. To identify pages spawned by this one, use [PageEvent.Popup](./puppeteer.pageevent.md) event instead.
A target this page was created from.
+2 -1
View File
@@ -910,7 +910,8 @@ export abstract class Page extends EventEmitter<PageEvents> {
/**
* A target this page was created from.
*
* @deprecated Use {@link Page.createCDPSession} directly.
* @deprecated To create CDP session use {@link Page.createCDPSession} directly. To
* identify pages spawned by this one, use {@link PageEvent.Popup} event instead.
*/
abstract target(): Target;