eclipse中的java.lang.IllegalStateException

时间:2019-04-01 16:42:34

标签: eclipse selenium

我正确设置了System.setProperty,但是它给出了一个错误。

我的浏览器版本是73.0.3683.86(正式版本)(64位),我的chrome驱动程序版本是:ChromeDriver 73.0.3683.68

Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by 73.0.3683.86 (Official Build) (64-bit) the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html
    at com.google.common.base.Preconditions.checkState(Preconditions.java:847)
    at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:134)
    at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:35)
    at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:159)
    at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:355)
    at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:94)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
    at sample.TC1.main(TC1.java:9)

0 个答案:

没有答案