Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error: page.goto: net::ERR_ABORTED; maybe frame was detached? #34889

Open
aykutde96 opened this issue Feb 21, 2025 · 4 comments
Open

[Bug]: Error: page.goto: net::ERR_ABORTED; maybe frame was detached? #34889

aykutde96 opened this issue Feb 21, 2025 · 4 comments

Comments

@aykutde96
Copy link

aykutde96 commented Feb 21, 2025

Version

1.50.1

Steps to reproduce

Some users have experienced similar problems in the examples below, but no solution has been suggested. If there is a solution for this, can you share it?

#18137
#8145
#28364
#22759

The automation I created consists of projects with different baseUrls and when I run them in parallel, sometimes I encounter the error below, sometimes I don't

Error: page.goto: net::ERR_ABORTED; maybe frame was detached?
Call log:

  • navigating to

Expected behavior

should navigate to url successfully

Actual behavior

give a white screen with this error
Error: page.goto: net::ERR_ABORTED; maybe frame was detached?
Call log:

  • navigating to

Additional context

No response

Environment

node version: v20.11.1
pw version: 1.50.1
OS: MacOs

I've used pnpm for the package manager

@aykutde96 aykutde96 reopened this Feb 21, 2025
@aykutde96
Copy link
Author

Browser is stuck in about:blank couldn't navigate the proper url
Image

@aykutde96
Copy link
Author

I've just found the problem but I don't know the solution please help. This problem only occured when I've added addCookies step before page.goto

test.beforeEach(
  async ({
    page,
    context,
  }) => {
    await context.addCookies([
      { name: "testCookie", value: "test", domain: ".test.com", path: "/" },
    ]);
    await page.goto("");
  },
);
test("test1", { tag: "@All" }, async ({ page }) => {
  await expect(page).toHaveTitle(/Title/);
});

@yury-s
Copy link
Member

yury-s commented Feb 24, 2025

Please share complete repro that we could run locally to see the problem.

@aykutde96
Copy link
Author

Thank you for your response. Since the project belongs to my workplace, I can't share it, but I will prepare a simplified version and share it tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants