Recommended Free Tools
Use await context.pages() to get the open Puppeteer pages associated with a specific BrowserContext. It returns a Promise<Page[]>, so await the call before iterating over the pages.
List pages in one BrowserContext
Call pages() on the context whose pages you want to inspect:
As an Amazon Associate I earn from qualifying purchases.
const pages = await context.pages();
for (const page of pages) {
console.log(await page.title(), page.url());
}
This assumes context is an existing Puppeteer BrowserContext. Each returned item is a Page, so you can use page methods such as title() and url(). Puppeteer’s BrowserContext API describes the method as getting the list of open pages inside that context.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Choose context.pages() or browser.pages()
The key difference is scope: use the context method for one user context, or the browser method when you need pages across contexts.
#1 Best Overall
| Method | Scope | Use it when |
|---|---|---|
await context.pages() |
Pages in that BrowserContext | Your task is limited to one context, including an isolated context. |
await browser.pages() |
Pages across the browser’s contexts | You need a browser-wide list rather than a context-specific one. |
A BrowserContext represents an individual user context with isolated storage such as cookies and local storage. A popup opened by a page belongs to its parent page’s context, so it is included in that context’s scope. To inspect the browser’s contexts, call await browser.browserContexts(); Puppeteer documents that a newly created browser returns a single context from this method. See the Browser API for browser.pages().
Know which pages are omitted
By default, context.pages() omits non-visible pages, including background pages. The optional includeAll argument exists, but Puppeteer marks it experimental; check the behavior for the Puppeteer version used by your application before relying on it. The method is documented in the BrowserContext API.
Rank #2
- HTML CSS Design and Build Web Sites
- Comes with secure packaging
- It can be a gift option
For non-visible pages, Puppeteer points to Target.page(). You can also inspect active targets in the context with context.targets(). A target is not necessarily a page, so use Target.page() when you need a page object for a particular target. See the BrowserContext targets API.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOr skip the browser setup
If your goal is a website screenshot rather than managing Puppeteer pages, ScreenshotNeo can return an image or PDF from one GET request. For example, this cURL command captures Stripe as a WebP image:
Rank #3
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for request options. It removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are never billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000.
Sign up for ScreenshotNeo free.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Frequently Asked Questions
What does context.pages() return?
A promise that resolves to an array of Puppeteer Page objects for open pages in that context.
Does context.pages() include background pages by default?
No. Non-visible pages such as background pages are omitted by default.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Quick Recap
Best Value
Rank #4
- Brand: Wiley
- Set of 2 Volumes
- A handy two-book set that uniquely combines related technologies Highly visual format and accessible language makes these books highly effective learning tools Perfect for beginning web designers and front-end developers
How do I inspect all browser contexts?
Call await browser.browserContexts().
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




