I have a WebDriver test using FirefoxDriver that I am trying to run as a Jenkins job.
It works fine on Windows, it also works from the command line on Linux, where my Jenkins server lives.
Unfortunately, during the execution of Jenkins' assignment, I received the following error:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms
The Jenkins task consists of two steps: a shell step that performs:
Xvfb :1 -screen 0 1024x768x24 & export DISPLAY=:1
And then the maven package to run the test class.
Why can't I complete a Jenkins job to launch Firefox?
source share