作者:Gakki
运行 Playwright 的时候提示没有安装浏览器。
playwright._impl._api_types.Error: Executable doesn't exist at /playwright/firefox-1403/firefox/firefox
╔════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated. ║
║ Please run the following command to download new browsers: ║
║ ║
║ playwright install ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════╝
解决方案:
playwright install
## 或者
python -m playwright install
- 以上命令会安装所有浏览器,如果只需要安装一个浏览器比如:firefox
python -m playwright install firefox
网友评论