线程中的异常"main" java.lang.IllegalStateException:驱动程序可执行文件的路径必须由webdriver.chrome.driver系统属性设置;有关更多信息,请参阅https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver . 最新版本可以从http://chromedriver.storage.googleapis.com/index.html下载
线程中的异常"main" java.lang.IllegalStateException:驱动程序可执行文件的路径必须由webdriver.chrome.driver系统属性设置;有关更多信息,请参阅https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver . 最新版本可以从http://chromedriver.storage.googleapis.com/index.html下载
2 回答
写“webdriver.chrome.driver”而不是“webdriver.chrome.Driver”
只是小写而不是大写 .
设置属性时,不能使用 uppercase
user.dir 将带您到当前的工作目录 .
请让我知道这对你有没有用 .