diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md index 839b8de1e4..6b68f0429f 100644 --- a/docs/src/api/class-browsercontext.md +++ b/docs/src/api/class-browsercontext.md @@ -527,8 +527,7 @@ Creates a new page in the browser context. ## method: BrowserContext.pages - returns: <[Array]<[Page]>> -Returns all open pages in the context. Non visible pages, such as `"background_page"`, will not be listed here. You can -find them using [`method: ChromiumBrowserContext.backgroundPages`]. +Returns all open pages in the context. ## async method: BrowserContext.route diff --git a/types/types.d.ts b/types/types.d.ts index 1c5e1f4d69..f7f7820fd6 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -4917,9 +4917,7 @@ export interface BrowserContext { newPage(): Promise; /** - * Returns all open pages in the context. Non visible pages, such as `"background_page"`, will not be listed here. You can - * find them using - * [chromiumBrowserContext.backgroundPages()](https://playwright.dev/docs/api/class-chromiumbrowsercontext#chromiumbrowsercontextbackgroundpages). + * Returns all open pages in the context. */ pages(): Array;