How to run selenium server sessions on different xvfb screens?
With the selenium hub, you can add the browsers in separately in their own Xvfb sessions
java -jar selenium-server-standalone-2.33.0.jar -role hub&
then connect each browser separately in its own Xvfb session, DISPLAY and port
export DISPLAY=:11Xvfb :11 -screen 0 1024x768x16 &java -jar selenium-server-standalone-2.33.0.jar \ -role node \ -port 4441 -hub http://localhost:4444/grid/register \ -browser "browserName=firefox,version=19,maxInstances=5"&
For this kind of use, you could typically use the xvfb-run
command (which can select automatically a display, but it can be configured)
Then you can create a firefox start script that would do xvfb-run firefox
that you could use as the selenium firefox start command (specified as a FirefoxBinary
)