Skip to main content
List open browser tabs in a session and target specific pages.

pages

The pages command lists all open pages (tabs) in a session and prints their IDs and URLs.

When to use pages

  • A popup or new tab opened during navigation or interaction.
  • exec or snapshot fails because more than one page is open in the session.
  • You are not sure which page holds the relevant state.
After running pages, pass the target page ID to other commands with --page <page-id>:

Flags

--session
string
required
The session to list pages for.