PhantomJS is another headless browser besides HtmlUnit. It is lightweight and faster. This article will show you how to use it step by step.
HTMLUnitDriver is not like other web browser drivers, it is lightweight and headless. It will not display a graphic user interface at run time, this can save a lot of system resources and make your test application run faster. But it is a full feature browser driver.