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

[REGRESSION]: firefox times out on await page.reload() when URL contains a #hash at the end #21430

Closed
TangMichael opened this issue Mar 6, 2023 · 0 comments · Fixed by #21542

Comments

@TangMichael
Copy link

TangMichael commented Mar 6, 2023

Context:
GOOD Playwright Version: 1.30.0 with firefox
BAD Playwright Version: 1.31.1 with firefox, 1.31.2 with firefox
Operating System: MacOS

Code Snippet

test("reload times out on firefox", async ({ page }) => {
  await page.goto("https://playwright.dev/docs/api/class-locator#");
  await page.reload();
});

I get

 Test timeout of 60000ms exceeded.

    page.reload: Navigation failed because page was closed!
    =========================== logs ===========================
    waiting for navigation until "load"
    ============================================================

      10 | }) => {
      11 |   await page.goto('https://playwright.dev/docs/api/class-locator#');
    > 12 |   await page.reload();
         |              ^
      13 | });
      14 |

Describe the bug
If there is a hash in the URL at the end then await page.reload() times out with Test timeout of 30000ms exceeded.. I expected the test to pass after a page reload. Slightly different from this issue 21145

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

Successfully merging a pull request may close this issue.

3 participants