【发布时间】:2013-01-01 07:43:40
【问题描述】:
我在 4.2 Juno 中使用 m2e eclipse 插件。添加后,我在我的 maven 依赖项中看到 selenium-chrome-driver-2.26.0.jar 文件
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.26.0</version>
</dependency>
到我的 pom.xml 文件。我收到典型的缺少驱动程序错误
java.lang.IllegalStateException: The path to the driver executable
must be set by the webdriver.chrome.driver system property; ...
Firefox 驱动程序有效(它是自动的)。右键单击项目时,我可以使用 Maven 子菜单成功更新我的项目。 maven 依赖文件夹已添加到我的项目的构建路径中。我看过与这些类似的帖子,但运气不佳。
How to add maven repository jars to eclipse buildpath? How to configure Eclipse build path to use Maven dependencies?
【问题讨论】:
标签: eclipse maven selenium m2e selenium-chromedriver