运行selenium脚本,出现Can not connect to the Service chromedriver解决方法汇总!
生活随笔
收集整理的這篇文章主要介紹了
运行selenium脚本,出现Can not connect to the Service chromedriver解决方法汇总!
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
今天運行selenium腳本,出現(xiàn)Can not connect to the Service chromedriver 這個錯誤。
我大概百度一下,主要兩種解決方法:
第一種、修改hosts里面的內(nèi)容:
把 取消 127.0.0.1 ? ? ? localhost?注釋
第二種,修改防火墻
? 關閉防火墻功能
以上兩種方法,都可以實現(xiàn),
但是,如果不想關閉防火墻,還想運行selenium腳本,有沒有其他辦法??
小魚試了一下, 就是先把防火墻關閉→運行腳本→再開啟防火墻→繼續(xù)運行腳本!
就這種操作,腳本還是可以繼續(xù)執(zhí)行的!!!
就這種騷操作,即不用關閉防火墻,又可以運行腳本,這叫 一箭雙雕啊~~~
?
總結(jié)
以上是生活随笔為你收集整理的运行selenium脚本,出现Can not connect to the Service chromedriver解决方法汇总!的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 20X29 FCPX插件50种可爱流行手
- 下一篇: 如何搭建属于 “数据业务”的指标体系?