playwright: [Bug]: Error: page.goto: net::ERR_ABORTED; maybe frame was detached?
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?
https://github.com/microsoft/playwright/issues/18137 https://github.com/microsoft/playwright/issues/8145 https://github.com/microsoft/playwright/issues/28364 https://github.com/microsoft/playwright/issues/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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 15 (2 by maintainers)
In my case, I realized that this error occurs when i forget adding ‘await’ before page.goto() or before ‘test.step’.
For e.g., below code throws the current error as I missed adding ‘await’ before test.step
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