selenium 之 chromedriver: Can not connect to the Service chromedriver

安装驱动后,运行报错 Message: Can not connect to the Service chromedriver

image.png

上网找了好久发现有很多人遇到这个问题,还好找到了解决办法

打开hosts,在后面添加127.0.0.1 localhost保存
再次运行~一切正常

你可能感兴趣的:(selenium 之 chromedriver: Can not connect to the Service chromedriver)