问题描述
我想使用Selenium Webdriver firefox,但是在执行webdriver.Firefox()
时出现此错误:
log_file = open(log_path,"a+") if log_path is not None and log_path != "" else None
PermissionError: [Errno 13] Permission denied: 'geckodriver.log'
我下载了适用于64位Windows的geckdriver(我听说对于Windows是32还是64并不重要)将其提取到:
C:Users\my_name\Local\ESRI\conda\envs\arcgispro-py3-clone2\Lib\site-packages\selenium\webdriver\firefox
右键单击此PC,然后单击“属性”->“高级系统设置”->“环境变量”->“系统变量”->“路径”->“编辑”->“新建”
在这里粘贴路径:
C:Users\my_name\Local\ESRI\conda\envs\arcgispro-py3-clone2\Lib\site-packages\selenium\webdriver\firefox\geckodriver.exe
然后跑了webdriver.Firefox()
,但出现相同的错误。我正在运行最新版本的Firefox,并使用硒3.141
要做什么才能完成这项工作?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)