【问题标题】:What is the dependency to be used in maven project using new version of Selenium 3.5使用新版本 Selenium 3.5 在 maven 项目中使用的依赖项是什么
【发布时间】:2018-01-21 13:38:08
【问题描述】:

使用 2017 年 10 月 8 日推出的新版 Selenium 3.5 的 maven 项目相关的 pom.xml 文件中使用的依赖项是什么?

【问题讨论】:

  • 欢迎来到 Stack Overflow!请阅读How to Ask,尤其是关于minimal reproducible example(MCVE)和How much research effort is expected?的部分,这将帮助您调试自己的程序并自己解决问题。如果您这样做并且仍然卡住,您可以返回并发布您的 MCVE、您尝试过的内容以及执行结果(包括任何错误消息),以便我们更好地帮助您。还提供指向页面和/或相关 HTML 的链接。

标签: maven selenium-webdriver dependencies


【解决方案1】:

Maven 没有用这个版本的 selenium webdriver 更新它的 repo。 (我假设您正在从包 org.seleniumhq.selenium 中寻找 jar)。它将很快更新。 或者你可以使用来自 org.jbehave.web 的 selenium

<!-- https://mvnrepository.com/artifact/org.jbehave.web/jbehave-web-selenium -->
<dependency>
    <groupId>org.jbehave.web</groupId>
    <artifactId>jbehave-web-selenium</artifactId>
    <version>3.5</version>
</dependency>

【讨论】:

  • 是的,我正在寻找 selenium java jars,因为我在下面使用了这个:3.4.0 版本: org.seleniumhq.selenium selenium-java3.4.0>
  • Maven 不会更新工件的仓库,这是事物维护者的工作...在项目中制作票是个好主意...
猜你喜欢
  • 1970-01-01
  • 2021-12-30
  • 2014-07-07
  • 2015-04-13
  • 2016-05-23
  • 2011-02-03
  • 1970-01-01
  • 2020-01-04
  • 2012-09-06
相关资源
最近更新 更多