错误:java.lang.IllegalAccessError:尝试访问方法com.google.common.util.concurrent.SimpleTimeLimiter。(Ljava / util / concurrent / ExecutorService;)V来自类org.openqa.selenium.net.UrlChecker
对于大于22.0的番石榴版本,会发生此错误。对于番石榴22.0,代码可以正常运行。此错误有解决方案吗?
操作系统:Windows 10浏览器:Chrome浏览器版本:版本78.0.3904.97(官方内部版本)(64位)浏览器驱动程序版本:Chromedriver 78.0.3904.105语言绑定版本:Java 1.8硒网格版本(如果适用):3.141.59
更新pom.xml中的以下maven依赖项。
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.0</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
</dependency>
也更新为Selenium 3.7.
1。
下面给出了链接。https://github.com/citrusframework/citrus/issues/294