Running Selenium Script on a Linux machine.
I was trying to run a selenium script on one of the Linux Red hat machine and was getting the below message:
Firefox console output:
Error: no display specified
Error: no display specified
Note: The Linux Red Hat was configured earlier to work with XVFB Firefox.
Solution:
Linux natively does not have capability to run any application that launches UI.
Below 2 steps needs to be executed for the browsers to launch and run the test.
Xvfb :99 -ac -screen 0 1280x1024x24 &
export DISPLAY=:99
Last updated: June 02, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai