[BUG] Codegen not opening
See original GitHub issueContext:
- 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:
- Created a year ago
- Comments:8 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!
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).