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

browserType.launchPersistentContext: Executable doesn't exist #76

Open
jpgklassen opened this issue Dec 21, 2024 · 1 comment
Open

browserType.launchPersistentContext: Executable doesn't exist #76

jpgklassen opened this issue Dec 21, 2024 · 1 comment

Comments

@jpgklassen
Copy link

When I follow the second set of instructions under Is there an easy drop-in replacement?, then try to run my program, I get the following error:

browserType.launchPersistentContext: Executable doesn't exist at C:\Users\myuser\AppData\Local\ms-playwright\chromium-1148\chrome-win\chrome.exe
╔═════════════════════════════════════════════════════════════════════════╗
║ Looks like Playwright Test or Playwright was just installed or updated. ║
║ Please run the following command to download new browsers:              ║
║                                                                         ║
║     npx playwright install                                              ║
║                                                                         ║
║ <3 Playwright Team                                                      ║
╚═════════════════════════════════════════════════════════════════════════╝

This is not mentioned in the instructions. Is it expected behavior? Should I run npx playwright install or will it overwrite the patched browser?

@daniellionel01
Copy link

You can run npx playwright install and then run patch the installation with bunx rebrowser-patches@latest patch --packageName playwright. Rebrowser does not actually give you a patched chromium executable, you can use whichever you'd like. It only patches code inside puppeteer & playwright.

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

No branches or pull requests

2 participants