I am getting bellow error. I am running ant task on jenkins for running testcases..
[testng] org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
[testng] Error: no display specified
[testng] Error: no display specified
Please provide me the solution for this problem.
Thank you.
In the project configuration you should have an option:
Start Xvfb before the build, and shut it down after
Here you can specifiy what display should selenium use via the property Xvfb specific displayname
. You should set it up to 0. If you don't have that option you should install the xvfb plugin.
Alternatively ssh into the worker and write export DISPLAY=:0.0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.