HtmlUnit 2.4 Released

HtmlUnit 2.4 has been released. See the changelog for more information about all of the improvements made since September, when version 2.3 was released. The TSS announcement is probably a good place to comment or ask questions about this release.

It’s exciting to see the steady improvement in JavaScript support. From the HtmlUnit main page:

The unit tests of some well-known JavaScript libraries are included in HtmlUnit’s own unit tests; based on these unit tests, the following libraries are known to work well with HtmlUnit:

  • jQuery 1.2.6: Full support (see unit test here )
  • MochiKit 1.4.1: Full support (see unit tests here )
  • GWT 1.5.3: Full support (see unit test here )
  • Sarissa 0.9.9.3: Full support (see unit test here )
  • Prototype 1.6.0: Very good support (see unit test here )
  • Ext JS 2.2: Very good support (see unit test here )
  • Dojo 1.0.2: Good support (see unit test here )
  • YUI 2.3.0: Good support (see unit test here )

3 Comments

  1. zoran said,

    March 3, 2009 at 1:43 pm

    Daniel,
    for some I’m trying to find the way to disable warnings coming from HtmlUnit. My little app is screen scraping application and not to worries about warnings/errors in 3rd party web apps. I get lots of the following:

    com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
    WARNING: Obsolete content type encountered: ‘text/javascript’.

    ar 3, 2009 1:36:03 PM com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error
    WARNING: CSS error: xxxxxxxxxxxxx

    I have tried various log turning-off methods, but nothing worked. Tried the following, with no success:

    System.getProperties().put(“org.apache.commons.logging.simplelog.defaultlog”, “fatal”);
    System.getProperties().put(“com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl”, “fatal”);
    System.getProperties().put(“com.gargoylesoftware.htmlunit.DefaultCssErrorHandler”, “fatal”);

    System.getProperties().put(“com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine”, “fatal”);

    LogFactory.getFactory().setAttribute(“org.apache.commons.logging.Log”, “org.apache.commons.logging.impl.NoOpLog”);

    Thanks in advance,
    Z

  2. Daniel Gredler said,

    March 4, 2009 at 8:38 am

    @Zoran: please post this sort of questions to the HtmlUnit users’ mailing list:

    http://sourceforge.net/mailarchive/forum.php?forum_name=htmlunit-user

  3. zoran said,

    March 6, 2009 at 9:15 am

    Thanks Daniel, will do.

    Best regards,
    Zoran


Post a Comment