selenium - 如何使用所有依赖项为新的 chromedriver/selenium 更新 maven 项目
问题描述
使用新版本的 Chromedriver (76) 它不能使用Actions
带有moveToElement
方法的类。
从我发现我也必须更新硒。但是当我更新硒时,我出错了:
cucumber.runtime.CucumberException: 类 steps.MainHooks 没有空的构造函数。如果需要 DI,请将 cucumber-picocontainer 放在类路径中
然后我更新了appium,fluentlenium等等等等..
所以我的问题是,最新硒的正确版本是什么?我正在使用 Fluentlenium、Cucumber、Junit。
解决方案
selenium 最新版本可以使用 3.1XX.X
使更新版本需要依赖的依赖项。这可以在编译依赖项部分或在 IDE 中看到,您可以转到 selenium 的 pom,在那里您可以看到它们所需的依赖项。
您可以在以下 URL https://mvnrepository.com/artifact/org.seleniumhq.selenium上查看版本
推荐阅读
- javascript - 激活 document.body.contentEditable 时如何记录更改
- c++ - 比较类和对象的向量时如何定义 == 运算符?
- c# - 如何拆分保留换行符的文本文件
- perl - 为什么Perl编程的“7.2.39 IPC::Open2”中显示的程序实际上结束了?
- docker - 无法启动 Hyper-V 虚拟机:“DockerDesktopVM”无法在 Windows 10 机器中启动
- apache-spark - Spark 2.4中的pivot-unpivot后列的值没有正确对齐
- python - 如何通过在熊猫中引用其日期来提取
- java - 滚动条不适应 JPanel 尺寸,Java JScrollPane
- javascript - 在javascript中访问打开的html div
- python - 比较 csv 文件(pandas、csv、python)后删除行