Act on multiple tabs with Stagehand
stagehand.page
object always points to the most recently opened or active tab, ensuring your automations continue working even when new tabs are created.
This means you can continue using familiar patterns:
stagehand.page
. If you need an agent to work across specific tabs, you’ll need to manage page switching manually.Agent
to autonomously execute multi-step tasks and complex workflows.