Skip to content

TimeoutError: waitForFirstTopLevelPage (no top-level Page) timed out after 5000ms #1287

@johackim

Description

@johackim

Environment Information

Stagehand:

  • Language/SDK: Nodejs v22.19.0
  • Stagehand version: 3.0.3

AI Provider:

  • Provider: OpenAI

Issue Description

When I run this index.mjs script:

import { Stagehand } from '@browserbasehq/stagehand';

const stagehand = new Stagehand({ env: 'LOCAL' });

await stagehand.init();

const page = stagehand.context.pages()[0];

await page.goto('https://example.com');

I have the following error:

TimeoutError: waitForFirstTopLevelPage (no top-level Page) timed out after 5000ms

How to fix this issue? Can I increase this timeout?

I have a low performance conputer, the browser make time to open.

Thanks for your help and your project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions