新人求助,Selenium2-java chromedriver的问题
System.setProperty("webdriver.chrome.driver","C:/Program Files (x86)/Google/Chrome/Application/chromedriver");WebDriver driver = new ChromeDriver();
driver.get("http://www.baidu.com");
Eclipse执行后提示"Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: C:\Program Files (x86)\Google\Chrome\Application\chromedriver"
环境变量里的系统变量的path已加"C:\Program Files (x86)\Google\Chrome\Application"
chrome版本36.0.1985.125
chromedriver版本v2.12
求大神指导我解决方法:'(
chromedriver这个驱动文件有没有在C:\Program Files (x86)\Google\Chrome\Application\chromedriver这个路径下?我怀疑你应该是路径错了,你的路径 应该是C:\Program Files (x86)\Google\Chrome\Application 终于把问题解决了。。。System.setProperty("webdriver.chrome.driver","C:/Program Files (x86)/Google/Chrome/Application/chromedriver");这里在chromedriver加上.exe就解决了。。。沉贴吧
页:
[1]