首页 > 解决方案 > 如何使用所有依赖项为新的 chromedriver/selenium 更新 maven 项目

问题描述

使用新版本的 Chromedriver (76) 它不能使用Actions带有moveToElement方法的类。

从我发现我也必须更新硒。但是当我更新硒时,我出错了:

cucumber.runtime.CucumberException: 类 steps.MainHooks 没有空的构造函数。如果需要 DI,请将 cucumber-picocontainer 放在类路径中

然后我更新了appium,fluentlenium等等等等..

所以我的问题是,最新硒的正确版本是什么?我正在使用 Fluentlenium、Cucumber、Junit。

标签: seleniumcucumberselenium-chromedriver

解决方案


selenium 最新版本可以使用 3.1XX.X

使更新版本需要依赖的依赖项。这可以在编译依赖项部分或在 IDE 中看到,您可以转到 selenium 的 pom,在那里您可以看到它们所需的依赖项。

您可以在以下 URL https://mvnrepository.com/artifact/org.seleniumhq.selenium上查看版本


推荐阅读