分享

Exception in thread "main" java.lang.IllegalStateException:

 _bolo 2016-07-01

Exception in thread "main" 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./index.html

    at com.google.common.base.Preconditions.checkState(Preconditions.java:197)

    at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:110)

    at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:32)

    at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:118)

    at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:291)

    at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:82)

    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:117)

    at com.ChormeDriverTest.main(ChormeDriverTest.java:13)

Conclusion:Chrome-driver not found ! You needed be download chromedriver.exe .

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多