Some nice instructions can be found here http://www.alittlemadness.com/2008/03/05/running-selenium-headless/
If you would like to test your xvfb running with capturing screenshot with "import -window ..." please remember to install imagemagick tools (sudo apt-get install imagemagick).
Then we can start our Selenium server and run our tests.
To run tests from Selenium Test Example module we should run:
I believe Selenium is really great tool that we can use in our daily development and now we can even run it on server. I hope it would be possible to integrate this testing to testing infrastructure of the d.o.
Lets see how it goes! Happy testing!