0

我正在按照给出的步骤

http://seleniumhq.org/docs/03_webdriver.jsp#java

当我运行 'mvn clean install' 时,出现以下错误:

[ERROR] Failed to execute goal on project MySel20Proj: Could not resolve dependencies for project MySel20Proj:MySel20Proj:jar:1.0: Failed to collect dependencies for [org.seleniumhq.selenium:selenium-java:jar:2.28.0 (compile), com.opera:operadriver:jar:1.1 (compile)]: Failed to read artifact descriptor for org.webbitserver:webbit:jar:0.4.14: Could not transfer artifact org.sonatype.oss:oss-parent:pom:6 from/to central (http://repo.maven.apache.org/maven2): Read timed out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

我该如何解决这个问题?

4

3 回答 3

1

检查这个Opera 驱动程序。此驱动程序不是 Selenium 的默认部分,因为它是由第 3 方开发的。看看这个页面,如果你向下滚动一点,有一个包含 3rd 方驱动程序的列表,其中包含指向它们的链接。

于 2013-01-23T08:56:59.553 回答
0

I feel that the Support for Opera in Selenium 2.28 is not present till date... Please correct me If I am wrong

于 2013-01-23T12:49:47.830 回答
0

貌似是网络问题,我又试了下,成功了!无论如何感谢您的帮助。

于 2013-01-24T05:36:53.263 回答