Java 我能';t设置ChomeDriver以获取硒

Java 我能';t设置ChomeDriver以获取硒,java,selenium,Java,Selenium,我尝试在Chrome浏览器中开始测试selenium。我使用Ubuntu 14.04。 此代码不起作用: driver = new ChromeDriver(); 我得到以下错误: java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http:

我尝试在Chrome浏览器中开始测试selenium。我使用Ubuntu 14.04。 此代码不起作用:

driver = new ChromeDriver();
我得到以下错误:

java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html

我在,我想下载谷歌驱动程序,但这个页面是空的!!!我没有看到任何下载链接。我找不到对我有帮助的信息。

最新的ChromeDriver版本似乎是2.10,因此您应该查看该目录:

谢谢,我下载了驱动程序。我如何设置它?我必须添加这个驱动程序路径或其他东西?非常感谢您的链接匹配!我把这个文件放在resource目录中,用code System.setProperty(“webdriver.chrome.driver”,“src/test/resources/chromedriver”)编写;驱动程序=新的ChromeDriver();所有测试都通过了。也许你配置了更好的驱动程序?