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] Codegen not opening

See original GitHub issue

Context:

  • Playwright Version: 1.23.4
  • Operating System: Mac
  • Node.js version: 16.14.2
  • Browser: Chromium
  • Extra: Codegen

Code Snippet

npx playwright codegen https://google.com

Describe the bug

I’ve been trying to open codegen unsuccessfully. I’m seeing this behavior both via CLI and VSCode extension. When I run the command, I can see the Chromium app icon appear and bounce around, but after about 30 seconds it times out and produces these logs:

=========================== logs ===========================
<launching> /Users/bshostak/Library/Caches/ms-playwright/chromium-1012/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --enable-use-zoom-for-dsf=false --no-sandbox --user-data-dir=/var/folders/4z/p2dnz0g14r3dhfmwsdmz3vrr0000gq/T/playwright_chromiumdev_profile-X5Nwkn --remote-debugging-pipe --no-startup-window
<launched> pid=28450
============================================================
    at Object.<anonymous> (/Users/bshostak/repo/automation/node_modules/playwright-core/cli.js:17:18) {
  name: 'TimeoutError'
}

I have tried switching to latest Playwright version, but that didn’t work. I also tried switching versions and running npx playwright install but that didn’t work either.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bshostakcommented, Aug 5, 2022

I am, but it’s worked before and other coworkers can use it. Seems isolated to me… I’ll play around with some stuff since it doesn’t seem like a playwright issue. Thank you!

1reaction
mxschmittcommented, Aug 5, 2022

Is your device a corporate device, does it have security policies applied etc.?

Might be related to https://github.com/microsoft/playwright/issues/13631.

You could also try npx playwright codegen --channel chrome https://google.com (requires that you have chrome installed).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swagger Codegen Documentation
The Swagger Codegen is an open source project under the Apache license. You can contribute to the project with suggestions, ideas, bug reports...
Read more >
Ignore SSL errors with playwright code generation
Just call page.pause() in your initial script which will open codegen controls if you run node my-initial-script.js . The example code ...
Read more >
Generate C/C++ code from MATLAB code - MATLAB codegen
The code generator creates the project file myadd_project.prj in the current working folder. Running codegen with the -toproject option does not generate code....
Read more >
API (GraphQL) - Client code generation - AWS Amplify Docs
Codegen helps you generate native code for iOS and Android, as well as the generation of types for Flow and TypeScript. It can...
Read more >
Codegen Error: "The name specified is not recognized as an ...
Codegen Error: "The name specified is not recognized as an internal or external command, operable program or batch file..."
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