今天使用selenium遇到报错:
selenium.common.exceptions.WebDriverException: Message: Service ./windows/chromedriver.exe unexpectedly exited. Status code was: 1
报错截图:
检查了代码没有发现问题,根据报错初步判断问题是出在chromedriver的路径上面,对比之前的代码
文章来源:https://www.toymoban.com/news/detail-509804.html
乍一看不能发现问题,仔细对比发现是路径写错了,应该是使用“\”,改正以后就正常解决了文章来源地址https://www.toymoban.com/news/detail-509804.html
到了这里,关于selenium报错解决:selenium.common.exceptions.WebDriverException: Message(已解决)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!