[Celerity-users] Silencing a specific SEVERE warning from Dojo

Jari Bakken jari.bakken at gmail.com
Sun Jul 19 07:28:19 EDT 2009


Hello Ashley,

On 18. juli. 2009, at 22.18, Ashley Moran wrote:
>
> Now, the whole thing is wrapped in an exception block, which means I  
> wouldn't expect to see any error reporting.  (Clearly, it's logging  
> anyway.)  The implication is, I guess, that HtmlUnit is not "sane".
>
> Is there a way round this?  Because of the unfortunate SEVERE log  
> level, we've been forced to disable all JavaScript error reporting,  
> or suffer this several hundred times during a Cucumber feature run.
>
> Workarounds/other feedback much appreciated.

You should definitely post this to the HtmlUnit list. Hopefully  
HtmlUnit can become "sane".

Workarounds:

1. Switch to another browser type (I only see the SEVERE error with  
Firefox 2, which is the default)

   Celerity::Browser.new(:browser => :firefox3)


2. Turn off logging for the whole JavaScriptEngine class

    
Celerity 
::Util 
.logger_for 
("com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine").level =  
java.util.logging.Level::OFF




More information about the Celerity-users mailing list