你的位置:首页 > 软件开发 > Java > The path to the driver executable must be set by the webdriver.gecko.driver system property

The path to the driver executable must be set by the webdriver.gecko.driver system property

发布时间:2016-09-06 16:00:10
报这个错,是因为你使用了selenium3+Firefox。在selenium3中,使用Firefox,需要添加驱动。您可以从Github上下载驱动程序下载网址- https://github.com/mozilla/geckodriver/releases/tag/v ...

报这个错,是因为你使用了selenium3+Firefox。在selenium3中,使用Firefox,需要添加驱动。

您可以从Github上下载驱动程序下载网址-  https://github.com/mozilla/geckodriver/releases/tag/v0.9.0

The path to the driver executable must be set by the webdriver.gecko.driver system property

 

在代码中加入

System.setProperty("webdriver.firefox.marionette","C:\\Program Files (x86)\\Mozilla Firefox\\geckodriver.exe");

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:The path to the driver executable must be set by the webdriver.gecko.driver system property

关键词:web

web
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。