views:

566

answers:

1

I'm trying to run Selenium headless (without the browser appearing). Other questions have pointed to xvfb as the tool to do this. However, it appears highly unstable, crashing all the time, so I'm looking for another alternative.

Is there a non-xvfb way of running Selenium headless?

A: 

I'm surprised. I've used Selenium and Xvfb several times without any problems and many others users are doing so too. Can you be more specific about your setup and the problems you are facing? How do you start Xvfb? Can you provide xvfb.log?

However, to answer your question, it is possible to use an X VNC server. See for example this page for some instructions. It's actually hard to be more precise without any details about your configuration.

Pascal Thivent
I guess xvfb's problem was this: http://wiki.maemo.org/Developer_frequently_asked_questions#.22xephyr.22_fails_to_start_in_the_host_with_a_dbus_security_error. xvfb always felt like a weird solution, so I had been looking for another method anyway (although VNC feels the same :-/). Thanks.
Paul Biggar
If you found the problem, then I guess you found the solution, didn't you?
Pascal Thivent
I thought so. I applied to fix, it looked fine, but its still broken. https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/330052 looks like the problem.
Paul Biggar