首页 > 代码库 > selenium执行打开浏览器,报Can not connect to the Service xxxxdriver

selenium执行打开浏览器,报Can not connect to the Service xxxxdriver

把hosts(在此目录C:\Windows\System32\drivers\etc)文件里的127.0.0.1 localhost这行注释去掉就可以

参考:https://stackoverflow.com/questions/24900922/webdriverexception-message-can-not-connect-to-the-chromedriver-error-in-uti

本文出自 “多测师” 博客,请务必保留此出处http://icestick8586.blog.51cto.com/9867871/1949048

selenium执行打开浏览器,报Can not connect to the Service xxxxdriver