Selenium 2.53.1 does not work on FireFox 48

I use selenium to test our websites. When I create a project, there is an Exception: -

OpenQA.Selenium.WebDriverException: Failed to start within 45000 milliseconds. Attempting to connect to the following addresses: 127.0.0.1:7055, and the problem is related to the code

IWebDriver driver = new FirefoxDriver(); 

Does anyone know how to solve this problem?

+7
c # firefox compatibility selenium selenium-firefoxdriver
source share
2 answers

Like other Selenium drivers from other browser providers, Mozilla has released an executable file that will work with the browser.

You can download the latest executable geckodriver from here

Add the loaded geckodriver executable to the system path

Binding Clients Selenium will try to find the gekodriver executable (or wires) from the system path. You will need to add the directory containing the executable to the system path.

  • On Unix systems, you can do the following to add it to the search path on the system if you are using a bash-compatible shell:

     export PATH=$PATH:/path/to/directory/of/executable/downloaded/in/previous/step 
  • On Windows, you need to update the Path system variable to add the full path to the geckodriver executable. The principle is the same as in Unix.

After all of the above, you need to initialize FireFoxDriver , as shown below: -

 var driver = new FirefoxDriver(new FirefoxOptions()); 

Note : - Follow this link to solve this problem with another programming language.

+2
source share

This answer did not work with me. Running Selenium 2.53.6 and firefox 47 n 48.

I would recommend downloading firefox 46, which seems to be best suited for selenium 2.53.x.

https://ftp.mozilla.org/pub/firefox/releases/46.0.1/win64/en-US/

As soon as I switched to firefox 46.0.1, everything worked as expected.

+2
source share

All Articles