- This error tells you that browsers are missing. In your terminal/command line, run:
playwright install
- Now verify you’ve installed it:
playwright codegen
- If issue still persist, locate where your playwright package is installed. Find pip packages location first:
pip list -v
Copy the pip’s path:

…and paste it in File explorer and hit enter:

Find playwright folder and delete it (along with the corresponding ..dist-info folder):

- Re-install browsers:
playwright install
- Verify playwright and browsers are installed:
playwright codegen