I have been researching about the headless browsers available till to date and found HtmlUnit being used pretty extensively. Do we have any alternative to HtmlUnit with possible
I use webkit as a headless browser, through Qt's Python bindings: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qtwebkit.html
Webkit is the render engine used by Chrome and Safari, and is very flexible.
One of my reasons for choosing it over HtmlUnit was ease of setting up:
sudo apt-get install python-qt4