-
1. How to suppress HTMLUnit warnings about JavaScript?
ssilvert Mar 4, 2011 12:22 PM (in response to yegor256)There are some ways to control what HtmlUnit does when it encounters a javascript error such as calling WebClient.setThrowExceptionOnScriptError(false). But I'm not sure if that will fix all of those type issues. If you can't find what you need in the HtmlUnit API then I would suggest posting the the HtmlUnit users mail list. They should be able to help.
Stan
-
2. How to suppress HTMLUnit warnings about JavaScript?
yegor256 Mar 4, 2011 12:29 PM (in response to ssilvert)I've read about WebClient.setThrowExceptionOnScriptError(false). It should work, but I will have to call it in every unit test? Looks very ineffective for me.
Thanks, I will try to reach HtmlUnit team with this questions, and will update here as soon as I find some solution.
-
3. How to suppress HTMLUnit warnings about JavaScript?
ssilvert Mar 4, 2011 12:54 PM (in response to yegor256)Just create a JSFSessionFactory that dispenses the JSFSession object with a WebClient that is set up the way you want it.
Stan