美文网首页
Windows下selenium出错Can not connec

Windows下selenium出错Can not connec

作者: _Cappuccino_ | 来源:发表于2019-05-27 16:57 被阅读0次

    具体报错信息如下:
    selenium.common.exceptions.WebDriverException:Message: Can not connect to the Service chromedriver

    遇见这个坑爹的问题,卡了我一天多,卸载重装了python 和浏览器N边,还是不行,最后发现问题出现在了 hosts文件里面 少了127.0.0.1 localhost

    localhost name resolution is handled within DNS itself.

    127.0.0.1 localhost

    ::1 localhost

    ::1 localhost
    1
    2
    3
    4
    5
    把 # 127.0.0.1 localhost前面的#号去掉就OK了


    作者:L-O-S-E-R
    来源:CSDN
    原文:https://blog.csdn.net/qq_32151639/article/details/78457921
    版权声明:本文为博主原创文章,转载请附上博文链接!

    相关文章

      网友评论

          本文标题:Windows下selenium出错Can not connec

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