Alex Rivera | Logout

Does Selenium support headless browser testing?

Asked 2011-09-27T12:12:11.080
73

I'm looking at Selenium Server at the moment, and I don't seem to notice a driver that supports headless browser testing.

Unless I'm mistaken, it doesn't support it. If you're on X, you can create a virtual framebuffer to hide the browser window, but that's not really a headless browser.

Can anyone enlighten me? Does Selenium support headless browser testing?

Edit
Report

1 Answer

15

The WebDriver API has support for HTMLUnit as the browser for your testing. Ruby people have been using Capybara for a while for their headless selenium testing so it is definitely doable.

answered 2011-09-27T12:26:48.133

Your Answer