英文:
Compatibility chromedriver and selenium with the last version of chrome?
问题
我有最新版本的Google Chrome:83.0.4103.61,在我的pom.xml文件中,我有以下依赖:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
<version>3.141.59</version>
</dependency>
但是当我尝试启动我的测试时,我遇到了以下错误:
org.openqa.selenium.SessionNotCreatedException: 无法创建会话:
此版本的ChromeDriver仅支持Chrome 80版本
如果我尝试将版本更改为4.0.0-alpha-5(或4.0.0-alpha-4、3....),我会遇到以下错误:
java.lang.NoClassDefFoundError: org/openqa/selenium/remote/AbstractDriverOptions
英文:
I have the latest version of google chrome: 83.0.4103.61 and in my pom.xml I have this dependency :
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
<version>3.141.59</version>
</dependency>
But when I try to launch my test I have this error :
> org.openqa.selenium.SessionNotCreatedException: session not created:
> This version of ChromeDriver only supports Chrome version 80
If I try to change the version to 4.0.0-alpha-5 (or 4.0.0-alpha-4, 3....), I have this error :
> java.lang.NoClassDefFoundError: org/openqa/selenium/remote/AbstractDriverOptions
专注分享java语言的经验与见解,让所有开发者获益!
评论