简体   繁体   English

下载了 Selenium Webdriver Java zip,但缺少 selenium JAR

[英]Downloaded Selenium Webdriver Java zip, but it is missing the selenium JARs

I downloaded the latest Selenium Webdriver zip file for Java and after I extracted it, I get a bunch of JAR files but missing the needed selenium-java-x.xx.x.jar file.我下载了最新的用于 Java 的 Selenium Webdriver zip 文件,在我解压后,我得到了一堆 JAR 文件,但缺少所需的 selenium-java-x.xx.x.jar 文件。

Selenium Client & WebDriver Language Bindings Selenium 客户端和 WebDriver 语言绑定
http://www.seleniumhq.org/download/ http://www.seleniumhq.org/download/

Am I not extracting it correctly?我没有正确提取它吗? I tried on both Mac and windows machine and I get these bunch of JARs instead.我在 Mac 和 Windows 机器上都尝试过,但我得到了这些 JAR。

在此处输入图片说明

Why do I not get the selenium JAR?为什么我没有得到硒 JAR?

As Florent B. has commented, the old selenium-java-x.xx.x.jar was renamed to client-combined-xxx-nodeps.jar.正如 Florent B. 所评论的,旧的 selenium-java-x.xx.x.jar 被重命名为 client-combined-xxx-nodeps.jar。 The new name of the JAR was not very obvious. JAR 的新名称不是很明显。

Simply add this new JAR in your build path Libraries.只需在您的构建路径库中添加这个新的 JAR。

Before changing or adding new JARs .在更改或添加新JARs之前。 Please check if Eclipse is taking the correct Java-SE version for execution.请检查 Eclipse 是否采用正确的 Java-SE 版本来执行。 This can be verified while creating a new Java project.这可以在创建新的 Java 项目时进行验证。 Select the latest Java-SE version installed on your machine from the drop-down list during project creation.在项目创建期间,从下拉列表中选择安装在您机器上的最新 Java-SE 版本。 enter image description here在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM