From coreygoldberg.blogspot.com:
I need to integrate my functional UI tests (Selenium/WebDriver) with my Jenkins CI system. The problem is that my Jenkins CI server has no display, so I must run my GUI tests in a headless X-server. A colleague pointed me to PyVirtualDisplay, a Python wrapper for Xvfb and Xephyr.