question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Playwright Inspector exits after 30 seconds if run with page.pause()

See original GitHub issue

Context:

  • Playwright Version: 1.16
  • Operating System: Windows
  • Node.js version: 14.18.1
  • Browser: All

Overview There are multiple ways to turn on the Inspector, as explained in https://playwright.dev/docs/inspector As per docs, when we set “PWDEBUG”, it also disables the timeout, by setting it to 0. This is a good idea, as it allows the user to click around the inspector without a time limit.

However, this is not the case with page.pause(). This option also opens the inspector, but the timeout is not set to 0, thus the inspector will force exit after 30s with e.g.

Slow test: tests\my_test.test.js (30s)

The same behavior is mentioned in a Feature request here: https://github.com/microsoft/playwright/issues/10132 And I believe it should be fixed to match the default behaviour of other options, at least for consistency reasons. For example, in Java binding, page.pause() does not require timeOut to be explicitly disabled.

Code Snippet

test.only('Inspector Demo', async ({ page }) => {
  test.setTimeout(0); // this helps, but I believe it shouldn't be needed
  await page.goto('https://playwright.dev');

  await page.pause();
});

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mariaceocommented, Apr 26, 2022

@mariaceo This is most likely #12974, which was fixed in v1.20.1. If you upgrade, things should work.

True that 👌 I bumped the version and it works as expected now, many thanks 🎉

0reactions
dgozmancommented, Apr 26, 2022

@mariaceo This is most likely #12974, which was fixed in v1.20.1. If you upgrade, things should work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playwright Inspector and page.pause() (#214) - YouTube
In this week's episode, we discuss the mixed metaphors in Playwright naming. Specifically, we take a look at how ` pause ()` and...
Read more >
Bug listing with status RESOLVED with resolution UPSTREAM ...
... Bug:40946 - "Kernel 2.6.2-gentoo make the system freeze if using artsd (kde 3.2) at realtime priority" status:RESOLVED resolution:UPSTREAM severity: ...
Read more >
Safari Technology Preview Release Notes
Web Inspector. Sources Tab. Changed URL breakpoints to also pause when an HTML attribute is set that triggers a load (254488@main) ...
Read more >
Changelog
The .within() command now requires a single subject and throws an error if ... Using cy.pause() when using cypress run --headed --no-exit will...
Read more >
Node.js v19.3.0 Documentation
Cleanup on exit of the current Node.js instance ... Inspector only methods ... server.listen(port, hostname, () => { console.log(`Server running at ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found