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

Copy the pip’s path:

Untitled

…and paste it in File explorer and hit enter:

Untitled

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

Untitled

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