1 of 1 people found this helpful
this is currently not possible, as Selenium does not allow access to WebClientOptions without subclassing HtmlUnitDriver. I've filled [ARQ-1836] Support HtmlUnitDriver client options - JBoss Issue Tracker with more details, Drone could in theory bridge the gap.
Have you though of using phantomjs instead if you need to test headless?
Thank you for your JIRA issue, I think it will be very usefull.
For your information, I cannot use PhantomJS because I work on a project where the login page is redirected via a HTTP 302 redirect. PhantomsJS does not seem to follow this kind of redirection. Nevertheless, I found a workarround with this property of HTMLUnitDriver :
With RichFaces, I also needed to change the default CSS parser. RF depend on net.sourceforge.cssparser:cssparser:0.9.5. I use version 0.9.14. My pom looks like that :