Firefox WebDriver: failed to connect to binary

I have a WebDriver based t21> testuite that I am trying to run with Jenkins. The project was imported and the assembly was successful.

During the test, I get the following:

Launching TestRunner Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNG652Configurator@2437 c6dc org.openqa.selenium.firefox.NotConnectedException: Cannot connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox Console Exit

It does not seem to be found in binary, but is in this path.

Failed tests: runBeforeTest (TestRunner): could not connect to the binary FirefoxBinary (/ home / user1 / Desktop / firefox / firefox-bin) on port 7055; process output: (..)

Before running, I started the X server.

 Xvfb :19 -screen 0 1024x768x16 & export DISPLAY=:19 firefox & 

Versions:

 Ubuntu 16.04.3 Selenium 2.53.1 Firefox 55.0 Jenkins 2.60.3 
+5
source share
1 answer

This will probably be a version mismatch between Selenium and Firefox.

According to the comments on one of the GitHub issues, Selenium 2.53.1 is known to work well with Firefox 47.0.1.

https://github.com/SeleniumHQ/selenium/issues/2527

To use Firefox 55, you need to use a higher version of Selenium (if it is already supported).

+2
source

Source: https://habr.com/ru/post/1271190/


All Articles