selenium3.n的问题

xiaoxiao2021-02-28  91

最近用在用selenium3时,发现在selenium3.n启动浏览器时,启动不起来,报如下错误

原因:对于selenium3.n版本都会使用geckodriver来驱动firefox,

解决方法:1、下载geckodriver.exe。放置在Path 环境变量可以访问到的地方。例如 C:\python34

  2、Geckodirver的下载地址:https://github.com/mozilla/geckodriver/releases

  3、把浏览器加到环境变量

转载请注明原文地址: https://www.6miu.com/read-38074.html

最新回复(0)