Question: I am getting error while using Firefox with WebDriver.

```
org.openqa.selenium.firefox.NotConnectedException: Unable to connect
to host 127.0.0.1 on port 7055 after 45000 ms.

```

* Firefox version:47.0
* Selenium:2.53.0
* Windows 10 64 bit

Is anyone getting a similar issue or any idea what is the solution for this? It's working fine with Chrome but with Firefox none of the URLs are getting loaded.

Answer: 
I had the same issue and found out that you need to switch drivers because [support was dropped](https://github.com/SeleniumHQ/selenium/issues/1862). Instead of using the *Firefox Driver*, you need to use the [Marionette](https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver) Driver in order to run your tests. I am currently working through the setup myself and can post some suggested steps if you'd like when I have a working example.

Here are the steps I followed to get this working on my Java environment on Mac (worked for me in my Linux installations (Fedora, CentOS and Ubuntu) as well):

1. Download the nightly executable from the [releases page](https://github.com/mozilla/geckodriver/releases)
2. Unpack the archive
3. Create a directory for Marionette (i.e., `mkdir -p /opt/marionette`)
4. Move the unpacked executable file to the directory you made
5. Update your `$PATH` to include the executable (also, edit your `.bash_profile` if you want)
6. :bangbang: Make sure you `chmod +x /opt/marionette/wires-x.x.x` so that it is executable
7. In your launch, make sure you use the following code below (it is what I used on Mac)

**Quick Note**

Still not working as expected, but at least gets the browser launched now. Need to figure out why - right now it looks like I need to rewrite my tests to get it to work.

**Java Snippet**

```
WebDriver browser = new MarionetteDriver();
System.setProperty("webdriver.gecko.driver", "/opt/marionette/wires-0.7.1-OSX");

```
I eventually installed an additional old version of Firefox (used for testing only) to resolve this, besides my regular (secure, up to date) latest Firefox installation.

This requires webdriver to know where it can find the Firefox binary, which can be set through the `webdriver.firefox.bin` property.

What worked for me (mac, maven, `/tmp/ff46` as installation folder) is:

```
mvn -Dwebdriver.firefox.bin=/tmp/ff46/Firefox.app/Contents/MacOS/firefox-bin verify

```

To install an old version of Firefox in a dedicated folder, create the folder, open Finder in that folder, download the Firefox dmg, and drag it to that Finder.