Selenium java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see.

时间:2017-02-24 15:35:11   收藏:0   阅读:1901

Java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see

selenium 打开firefox时报错

原因是使用了最新的selenium webdriver版本

48以后的firefox不能直接启动,必需先设置System.setProperty("webdriver.gecko.driver", "geckoDriver.exe路径");

下载最新版本的geckoDriver 

https://github.com/mozilla/geckodriver/releases

原文:http://www.cnblogs.com/huyufan/p/6438628.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!