---
title: "SELENIUM无法支持FIREFOX最新版"
author: "mailx8"
date: "2017-09-10T21:26:03Z"
tags: []
categories: ["互联网"]
slug: "selenium-firefox"
draft: false
lastmod: "2017-09-10T21:26:03Z"
id: 2392762
url: "https://mailx8.iteye.com/blog/2392762"
---

由于FIREFOX经常在后台静默更新版本，导致有时候SELENIUM莫名其面就不能打开浏览器了。

最近发现下载FIREFOX的旧版又特别困难，找了半天终于找到M社的FTP地址：

[ftp.mozilla.org/pub/firefox/releases/](http://ftp.mozilla.org/pub/firefox/releases/)

希望能够帮到遇到和我一样困境的童鞋，推荐下载45版，不要安装静默更新的模块。

 

 

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

 

 System.setProperty("webdriver.gecko.driver", "d:\\\\eclipse\\\\geckodriver.exe");

 

    WebDriver driver = new FirefoxDriver();

......