兼容性chromedriver和selenium与最新版本的chrome?

huangapple 未分类评论53阅读模式
英文:

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 :

&lt;dependency&gt;
    &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
    &lt;artifactId&gt;selenium-chrome-driver&lt;/artifactId&gt;
    &lt;version&gt;3.141.59&lt;/version&gt;
&lt;/dependency&gt;

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

huangapple
  • 本文由 发表于 2020年5月29日 17:47:21
  • 转载请务必保留本文链接:https://java.coder-hub.com/62083109.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定