- HtmlUnit
Infobox Software
name = HtmlUnit
caption =
developer =Gargoyle Software
released = initial release|2002|05|22
latest release version = 2.3
latest release date = release date|2008|09|16
programming language = Java
operating system =Cross-platform (JVM )
platform =
language = English
genre =Web browser
license =Apache License 2.0
website = [http://htmlunit.sourceforge.net/ htmlunit.sourceforge.net]HtmlUnit is a pure Java
headless web browser , which allows high-level manipulation ofweb page s, such as filling forms, clickinghyperlink s, accessing attributes and values of specific elements within the pages, you do not have to create lower-level requests ofTCP/IP orHTTP , but justgetPage(url)
, find a hyperlink,click()
and you have all theHTML ,JavaScript , andAJAX are automatically processed.The most common use of HtmlUnit is
test automation of web pages (even with complex JavaScript libraries, for instanceGoogle Web Toolkit 1.5 tests now pass), but sometimes it can be used for web scraping, or downloading website content.Version 2.0 includes many new enhancements such as
W3C DOM implementation, Java 5 features, betterXPath support, and improved handling for incorrect HTML, in addition to the usual JavaScript various enhancements, while version 2.1 mainly focuses on tuning some performance issues reported by users.External links
* [http://htmlunit.sourceforge.net/ HtmlUnit]
.
Wikimedia Foundation. 2010.