Skip to content

Page/Context Closes Unexpectedly After Dropdown Selection and Modal Dismissal #769

@Ashik-qa

Description

@Ashik-qa

StagehandDefaultError:
Hey! We're sorry you ran into an error.
If you need help, please open a Github issue or reach out to us on Slack: https://stagehand.dev/slack

Full error:
page.evaluate: Target page, context or browser has been closed
    at _StagehandPage.<anonymous> (/Users/ashik/Documents/team-qa/node_modules/@browserbasehq/stagehand/dist/index.js:3280:15)
    at rejected (/Users/ashik/Documents/team-qa/node_modules/@browserbasehq/stagehand/dist/index.js:70:29)

Error Context: test-results/tests-cgmReport-CGM-Report-07f3e-ser-and-open-client-profile/error-context.md

When automating a flow that involves searching for a user and clicking the "Client Profile" link in our dashboard, the test fails with page.evaluate: Target page, context or browser has been closed. This happens immediately after selecting a user from the dropdown, even though the flow works manually in the browser.

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