【发布时间】:2022-11-11 05:46:53
【问题描述】:
我正在尝试使用 python 中的这个简单程序打开 Firefox,我使用的是最新版本的 Ubuntu。
from selenium import webdriver
brow = webdriver.Firefox()
但我收到错误消息, “selenium.common.exceptions.SessionNotCreatedException:消息:无法启动浏览器/snap/firefox/current/firefox.launcher:没有这样的文件或目录”
我尝试更新 Firefox 并使用不同的 geckodriver。
【问题讨论】:
-
您确定firefox驱动程序安装在正确的目录中吗?
标签: python linux selenium geckodriver