Skip to content

browserType.launchPersistentContext: Executable doesn't exist #76

Closed

Description

@jpgklassen

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?

Activity

  1. daniellionel01 commented on Dec 22, 2024

    @daniellionel01

    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.

  2. rebrowsernet commented on Oct 18, 2026

    @rebrowsernet
    Collaborator

    That's expected. The drop-in patches Playwright's JavaScript, not the browser, so install a browser the same way as with Playwright: npx playwright install chromium (rebrowser-playwright provides the playwright command). Or use channel: 'chrome' / executablePath with a Chrome you already have. It doesn't overwrite anything patched. #132 adds a note about this to the README. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions