I'm trying to use Selenium Server to do some web testing.... if you're not familiar with Selenium, the way it works is that my web app (in this case, a PHP script) uses Selenium's excellent API, which in turn calls on Firefox to actually interact with web pages. Then Selenium picks up the results from Firefox and returns them back to my app. Everything I have just described is working 100% perfectly on my dev sever (my desktop Mac).
Now that I know that all the right pieces are in place and my code actually works, I need to pick it all up and have it run on my live server, which is a Linux-based VPS running CentOS. I've been able to install firefox and I have the Selenium server working great, but firefox won't run because it says "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 directly-- how do people run Selenium on a linux server when there is no display?)
FWIW I see 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.