I'm trying to run Firefox GUI browser on headless CentOS server in order to perform some web testing.
The setup was successfully tested on desktop Mac computer. It, however, fails to run on my headless VPS CentOS server with following message "Error: no display specified." (Which makes sense, since it's just a server sitting on a rack someplace.)
How can I get Firefox to run without a display, so Selenium will be able to interact with it? Or - more broadly - how do people run GUI-only applications on a Linux server when there is no display?
I've noticed that Firefox has this command line option:
X11 options --display=DISPLAY X display to use
Unfortunately I don't know anything about X11 or displays under CentOS so I don't know what to specify on the command line, or if this would help.