Multiple tabs and windows
ferridriver models every tab and popup as a Page on the same
BrowserContext. Cookies and storage are shared between them.
Open a new tab
Wait for a tab the page opens
There is no popup event — when the page opens a new tab (window.open,
target="_blank"), poll context.pages() until a new Page appears.
Iterate all pages in a context
Close a specific tab
OAuth popup flow
MCP server: switching tabs
The MCP page tool manages the active page within a session:
After page(select) or page(new), refs from the previous
snapshot become invalid — re-snapshot before clicking.