playwright: [BUG] Protocol error when test runner attempts to open new page on juggler - Ubuntu 22.04

Context:

  • Playwright Version: @latest
  • Operating System: Kubernetes, Jenkins agent, Ubuntu 22.04
  • Node.js version: LTS
  • Browser: Firefox
  • Extra: cannot provide details, or snippets of actual code, since it is proprietary

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and that we can run and debug locally. For example:

Describe the bug

When running Jenkins pipeline job, on Firefox the test will not run, since there is an error when test runner will attempt to open new page. Log:

> npx playwright test -g "XXX" --config=configs/test.pwConfig.ts
15:40:29  
15:40:30  
15:40:30  Running 3 tests using 1 worker
15:40:52  ·×F·
15:40:52  
15:40:52    1) [desktop firefox] › XXX:32:3 › login › XXX 
15:40:52  
15:40:52      browserContext.newPage: Protocol error (Browser.newPage): receiver.addEventListener is not a function awaitEvent/<@chrome://juggler/content/Helper.js:27:16
15:40:52      awaitEvent@chrome://juggler/content/Helper.js:26:12
15:40:52      newPage@chrome://juggler/content/TargetRegistry.js:329:20

Add any other details about the problem here.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

@radekBednarik Good news! I found an issue in Firefox instrumentation and landed a fix. So, this should be fixed with the next v1.28.0 release. Meanwhile, you can try @playwright/test@next tomorrow to check it out on the canary release.