当前位置:   article > 正文

Selenium chromeDriver启动时报错:session not created: This version of ChromeDriver only supports Chrome_org.openqa.selenium.sessionnotcreatedexception: se

org.openqa.selenium.sessionnotcreatedexception: session not created: chrome

问题:

Selenium +JAVA 进行web自动化时,报错

Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.

java.lang.ExceptionInInitializerError.....
Caused by: org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 76

详细报错信息如下

解决方案:

这是因为ChromeDriver与本地chrome浏览器的版本不一致导致

ChromeDriver下载地址:http://npm.taobao.org/mirrors/chromedriver/

 

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号