How to fix net::ERR_ABORTED during page.goto in Playwright?
Playwrightnet::ERR_ABORTED often appears when navigation is interrupted by another navigation, redirect, or page close.
Avoid overlapping goto calls and await the one you trigger.
await page.goto('https://example.com');
await Promise.all([
page.waitForURL('**/dashboard'),
page.getByRole('link', { name: 'Dashboard' }).click(),
]);
Do not close the page/context until all navigation-related promises settle.