首页 > 编程语言 > 详细

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      阅读:1901      评论:0      收藏:0      [点我收藏+]

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!