Play 2.5 and Fluentlenium: how to turn HtmlUnit warnings off
<p>I am trying to write Selenium Tests using <code>WithBrowser</code> class of the PlayFramework 2.5.</p>

<p>Something like this:</p>

<pre><code>public class BrowserFunctionalTest extends WithBrowser {

   @Test
   public void runInBrowser() {
      browser.goTo("/");
      assertNotNull(browser.$("title").getText());
  }
}
</code></pre>

<p>However, I want to be able to set custom Error Handlers for at least CSS errors, since they spam my console. And since they come from boostrap I cannot get rid of them.</p>

<p>I tried to set the loglevel of the logger like this:</p>

<pre><code> java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel(java.util.logging.Level.SEVERE);    
System.getProperties().put("org.apache.commons.logging.simplelog.defaultlog", "fatal");
</code></pre>

<p>Fluentlenium documentation tells me to override the <code>getDefaultDriver</code> method, but that does not seem to be applicable here. And I cannot get my hands on the WebClient directly, since there is no getter for the field.</p>