0

我正在尝试在项目中使用库“selenium-server-standalone-2.37.0.jar”。该项目以前使用“selenium-server-standalone-2.24.1.jar”,但我认为这对于我当前版本的 Chrome 来说已经过时了。

但是,当我尝试将旧 jar 换成新 jar 时,我开始收到 Eclipse 错误:

Description Resource    Path    Location    Type
Archive for required library: 'mypath/lib/selenium-server-standalone-2.37.0.jar' in project 'BookProject' cannot be read or is not a valid ZIP file BookProject Build path  Build Path Problem

所以我尝试用 7-zip 解压罐子,但在那里我得到了错误:

Can not open file 'mypath/selenium-server-standalone-2.37.0.jar' as archive

这个罐子真的坏了,还是我在这里遗漏了什么?如果这个不起作用,有人知道我在哪里可以找到以前的版本吗?我在任何地方都找不到。

4

1 回答 1

1

如果即使使用 7-zip 也无法打开 jar,则说明它已损坏。

我建议重新下载它。此外,在使用 eclipse 时,升级时清除依赖缓存可能是个好主意。这通常可以解决问题。

编辑

我想罐子本身可能只是损坏了。如果是这种情况,请尝试转到https://code.google.com/p/selenium/downloads/list 并在其中显示"Search: Current Downloads"Select"Deprecated Downloads"

我仍然使用
https://code.google.com/p/selenium/downloads/detail?name=selenium-server-standalone-2.35.0.jar

于 2013-10-21T19:21:27.600 回答