Another cause is - Playwright extension is not able to find node.exe executable
Fix - Add path to node.exe to windows PATH windows environment variable
- Windows menu -> Settings -> Search "Edit environment variables for your account"
- There for PATH edit and add path to node.exe
- Open a windows command shell and confirm the path is in "PATH" environment variable
echo %PATH%
- Now relaunch vscode and in playwright panel click "Refresh Tests"