weixin_39218743
兮之~
2019-01-08 10:04

selenium+webdriver+火狐:Selenium 设定firefox的启动路径报错

  • java
  • eclipse

代码:
System.setProperty("webdriver.firefox.bin", "D:\Program Files (x86)\Mozilla Firefox\firefox.exe");
WebDriver driver=new FirefoxDriver();

报错信息:
The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐