Playwright | 运行的时候提示没有安装浏览器

2024-01-08  本文已影响0人  Gakki0725
作者: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
python -m playwright install firefox
上一篇 下一篇

猜你喜欢

热点阅读