美文网首页
Playwright | 运行的时候提示没有安装浏览器

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

作者: Gakki0725 | 来源:发表于2024-01-08 14:20 被阅读0次
作者: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

相关文章

网友评论

      本文标题:Playwright | 运行的时候提示没有安装浏览器

      本文链接:https://www.haomeiwen.com/subject/sgonndtx.html