Menu

HtmlUnit / News: Recent posts

HtmlUnit 2.16 Released

The team would like to announce the release of HtmlUnit 2.16.

The most notable changes are:
- Java 7 is required
- WebClient inherits AutoClosable, so it can be used in try-with-resources statement
- Internet Explorer 11 and Firefox 31 are supported
- INTERNET_EXPLORER_8 is no more deprecated
- Various fixes

The full list of changes can be found in like this... read more

Posted by Ahmed Ashour 2015-04-20

OSGi bundle

Hi all,

Starting from 2.11, an OSGi bundle is part of the release files.

You can get it from:
https://sourceforge.net/projects/htmlunit/files/htmlunit/2.11/

As always: enjoy!

HtmlUnit team

Posted by Ahmed Ashour 2013-01-07

2009 JavaOne HtmlUnit technical session online content

HtmlUnit is a pure java GUI-Less browser, which allows high-level manipulation of web pages, such as filling forms, clicking links, accessing attributes and values of specific elements within the pages, you do not have to create lower-level requests of TCP/IP or HTTP, but just getPage(url), find a hyperlink, click() and you have all the HTML, JavaScript, and Ajax are automatically processed.

The most common use of HtmlUnit is test automation of web pages, but sometimes it can be used for web scraping, or downloading website content.

2009 JavaOne conference website now has the online version of the technical session "HtmlUnit: An Efficient Approach to Testing Web Applications
TS-4238"... read more

Posted by Ahmed Ashour 2009-06-11

HtmlUnit 2.5, a headless java browser, released

A new release of the GUI-Less java browser is available, which allows high-level manipulation of web pages, such as filling forms, clicking links, accessing attributes and values of specific elements within the pages; you do not have to create lower-level requests of TCP/IP or HTTP, but just getPage(url), find a hyperlink, click() and you have all the HTML, JavaScript, and Ajax are automatically processed.

The most common use of HtmlUnit is test automation of web pages (even with complex JavaScript libraries, like jQuery and Google Web Toolkit), but sometimes it can be used for web scraping, or downloading website content.

The main enhancements of this release:
- Improved JavaScript support, particularly full support for MooTools, adding to already supported Google Web Toolkit, jQuery, Mochikit and Sarissa
- Repackaged Rhino classes to allow the use of HtmlUnit and a regular Rhino version in the same project
- Support all HTML elements
- Experimental WebClient.waitForBackgroundJavaScript() and WebClient.waitForBackgroundJavaScriptStartingBefore() for simple, fast and deterministic AJAX testing
- Reworked handling of background JavaScript tasks using Java 5 executors
- And as usual, various bug fixes

You can find more information in the official website (http://htmlunit.sourceforge.net/), the development team is looking forward to getting your feedback.

Posted by Ahmed Ashour 2009-04-21

HtmlUnit in JavaOne

HtmlUnit is a pure java GUI-Less browser, which allows high-level manipulation of web pages, such as filling forms, clicking links, accessing attributes and values of specific elements within the pages, you do not have to create lower-level requests of TCP/IP or HTTP, but just getPage(url), find a hyperlink, click() and you have all the HTML, JavaScript, and Ajax are automatically processed.

The most common use of HtmlUnit is test automation of web pages, but sometimes it can be used for web scraping, or downloading website content.... read more

Posted by Ahmed Ashour 2009-03-23

HtmlUnit: implementation charts of the latest snapshot

HtmlUnit is a pure java GUI-Less browser, which allows high-level manipulation of web pages, such as filling forms, clicking links, accessing attributes and values of specific elements within the pages, you do not have to create lower-level requests of TCP/IP or HTTP, but just getPage(url), find a hyperlink, click() and you have all the HTML, JavaScript, and Ajax are automatically processed.

The most common use of HtmlUnit is test automation of web pages, but sometimes it can be used for web scraping, or downloading website content.... read more

Posted by Ahmed Ashour 2009-01-26

HtmlUnit: All HTML elements are now included in HtmlUnit

HtmlUnit is a "browser for Java programs". It models HTML documents and provides an API that allows you to invoke pages, fill out forms, click links, etc... just like you do in your "normal" browser.

In SVN version, HtmlUnit has recently added all HTML elements (some are rarely used), which may have some backward compatibility effect in the next version 2.5

For example, <b> was evaluated to HtmlUnknownElement, but now will be HtmlBold.... read more

Posted by Ahmed Ashour 2009-01-09

Two sessions in TheServerSide Java Symposium

It is now official, HtmlUnit will be in two sessions in the TheServerSide Java Symposium this year.

Marc Guillemot and Daniel Gredler are going to co-present "HtmlUnit: An Efficient Approach to Testing Web Applications", which will teach you:
- How to efficiently automate the testing of Web apps with HtmlUnit
- The benefits and limitations of HtmlUnit
- Why HtmlUnit can be far more efficient than testing in a "real" browser. ... read more

Posted by Ahmed Ashour 2009-01-04

HtmlUnit 2.4, a headless java browser, released

A new release of the GUI-Less java browser is available, which allows high-level manipulation of web pages, such as filling forms, clicking links, accessing attributes and values of specific elements within the pages, you do not have to create lower-level requests of TCP/IP or HTTP, but just getPage(url), find a hyperlink, click() and you have all the HTML, JavaScript, and Ajax are automatically processed.... read more

Posted by Ahmed Ashour 2008-12-31

HtmlUnit-1.1 final released

This is the first official release with JavaScript support. Because adding a reasonable level of JavaScript support was such a large effort, this release has been a long time coming. Future releases will likely contain smaller chunks of functionality and will therefore be released more frequently.

Posted by Mike Bowler 2002-11-25

HtmlUnit-1.1-rc2 released

The second release candidate for HtmlUnit-1.1 has been released.

Posted by Mike Bowler 2002-11-17

HtmlUnit 1.1 Release Candidate released

The original goal of the 1.1 release was to implement the parts of javascript support that are used most frequently. We've reached that goal. There is still a lot to do wrt javascript support but there is enough there to have a production release.

Assuming no show-stopper bugs are found, this release candidate will become 1.1 final.

Posted by Mike Bowler 2002-10-29

HtmlUnit-1.1-pre5 released

HtmlUnit-1.1-pre5 has been released.

The full change log is at http://htmlunit.sourceforge.net/changes.html

Big changes that you should be aware of are:

1) The entire directory structure has been redesigned. Code in cvs is now stored in the "htmlunit" module

2) The jars files used by HtmlUnit have changed. It is now using NekoHTML instead of JTidy

Posted by Mike Bowler 2002-09-26

HtmlUnit-1.1-pre4 released

HtmlUnit-1.1-pre4 has been released. Refer to the change log at http://htmlunit.sourceforge.net/changes.html for full details

Posted by Mike Bowler 2002-08-25

HtmlUnit-1.1-pre3 REFRESH

HtmlUnit-1.1-pre3 has been refreshed. It was originally uploaded without commons-logging.jar. If you had already downloaded it then you can just download this jar by itself and put it in the lib directory. If you are just downloading HtmlUnit now for the first time then you do not need to download this extra file - it is now part of the main zip.

Posted by Mike Bowler 2002-07-29

HtmlUnit-1.1-pre3 released

  • Added HtmlElement.getParent()
  • Added HtmlElement.getNextSibling()
  • Added HtmlElement.getPreviousSibling()
  • Changed WebConnection so that cookies will be shared among servers in
    the same domain
  • Added support for redirection - WebClient.setRedirectEnabled(boolean)
  • Added method on WebResponse to access the response headers
  • Many new javascript objects - this will be transparent to users of HtmlUnit
  • Lots of refactoring in the javascript portion
  • Fixed a NullPointerException if the server doesn't return a content-type header
  • Fixed HtmlElement.childrenAsText() so that it ignores comments
  • Added support for Input.checked
  • Added some constants to BrowserVersion for various browsers
  • Upgraded gsbase.jar to version 1.8
  • Replaced js.jar with a version that has been compiled with debug support
  • Upgraded commons-httpclient.jar to the July 27 gump build.
  • Added commons-logging.jar (July 27 gump build) which is needed by httpclient
  • Now support proxy server and ssl together
Posted by Mike Bowler 2002-07-28

HtmlUnit-1.1-pre2 released

Lots of bug fixes, more support for javascript. See the change log for details.

Posted by Mike Bowler 2002-07-12

HtmlUnit-1.1pre1 released

The first pre-release of HtmlUnit 1.1 has been released. The main new feature of 1.1 is support for javascript.

The javascript functionality that has been implemented so far is documented in the general documentation for 1.1.

Refer to http://htmlunit.sourceforge.net for details.

Posted by Mike Bowler 2002-07-04