JWebUnit changes

Release History

VersionDateDescription
3.0August 18, 2011Updated all internals to JUnit 4. HtmlUnit 2.9.
2.5October 24, 2010Small fixes and dependency updates
2.4July 4, 2010Licensing change
2.3March 3, 2010Updated to JUnit 4.7 and latest HtmlUnit and Selenium
2.2May 15, 2009 
2.1December 12, 2008 
2.0October 27, 2008First release that requires Java 1.4+
1.5april 22, 2008The latest major release before Java 1.5 migration
1.4.1may 5, 2007 
1.4march 17, 2007 
1.4-RC4march 04, 2007 
1.4-RC3january 11, 2007 
1.4-RC2december 5, 2006 
1.4-RC1november 20, 2006 
1.3july 28, 2006 
1.3-RC2july 07, 2006 
1.3-RC1june 27, 2006After all these great changes, we need a RC.
1.2june 13, 2004The long awaited release
1.1  
1.0  
RC2  
RC1  

Release 3.0 - August 18, 2011

TypeChangesBy
updateUpdated to HtmlUnit 2.9.henryju
fixFixed handling of several cookies/headers with same name. getAllHeaders() was wrongly returning only the latest header header with the same name so this method was deprecated and a new one was added with a different return type. See getResponseHeaders(). AssertCookiePresent/Match was also updated to take the last set cookie of the given name instead of the first one. Fixes 3190055. Thanks to Achim Westermann.henryju
addAdded indexed alternatives of methods clickLinkWithImage, assertLinkPresentWithImage and assertLinkNotPresentWithImage. Fixes 3166502. Thanks to Harri.henryju
fixassertTitleNotSame works incorrectly. Deprecated and replaced by a working assertTitleNotEquals. Fixes 3116839. Thanks to Tony Qian.henryju
updateUpdated to JUnit 4. See migration section of the documentation. Fixes 2837745.henryju

Release 2.5 - October 24, 2010

TypeChangesBy
fixFixed handling of absolute image path (when src attribute start with a /). Fixes 2970512. Thanks to Todd Owen.henryju
updateUpdated to slf4j 1.6.1.henryju
updateUpdated to HtmlUnit 2.8.henryju
updateUpdated to JUnit 4.8.2.henryju
addAdded the ability to change RefreshHandler in HtmlUnitTestingEngine. Fixes 1864365. Thanks to Jason McSwain.henryju

Release 2.4 - July 4, 2010

TypeChangesBy
updateLicense was changed to LGPL v3henryju

Release 2.3 - March 3, 2010

TypeChangesBy
updateUpdated to Selenium RC 1.0.1.henryju
updateUpdated to HtmlUnit 2.7.henryju
updateUpdated to JUnit 4.7.henryju

Release 2.2 - May 15, 2009

TypeChangesBy
updateUpdated to HtmlUnit 2.5.henryju
addEnable partial matches of image src and alt attributes. Added assertImagePresentPartial(String partialImageSrc, String partialImageAlt) method. Fixes 2106019. Thanks to Kent R. Spillner.henryju
addExposed option to toggle exceptions on Javascript errors. Fixes 2647451. Thanks to Kent R. Spillner.henryju
fixUsed buffered output stream to improve WebTester.saveAs method performances. Fixes 2568604. Thanks to Umkhulubaas.henryju
fixWebClient.closeAllWindows() called to prevent memory leak. Fixes 2525065. Thanks to Sivan Mozes.henryju

Release 2.1 - December 12, 2008

TypeChangesBy
addAdded new IElement element interface, and methods to directly access elements by XPath.jevonwright
addAdded assertHeader*() and assertResponseCode*() methods. Fixes 1744628.jevonwright
addAdded WebTestCase(WebTester) constructor. Fixes 1728676.jevonwright
addAdded assertLabeledFieldEquals(id, text), assertLabel*(), and setLabeledFormElementField(id, value) methods. Fixes 1519807.jevonwright
updateBC CHANGE: setFormElement(), assertFormElementEquals() methods will no longer assert that a form already exists in the page (as allowed by the HTML standard).jevonwright
fixnavigator.userAgent is no longer null by default. Test cases now use the Firefox 3.0 user agent as the default, rather than MSIE 4.0. Fixes 1724695.jevonwright
fixFixed proxy authentication bug in HtmlUnit implementation. Fixes 2306967. Thanks to r_monson.jevonwright
addAdded assertMatch(regexp, text) and assertNotMatch(regexp, text) methods. Fixes 1637716.jevonwright
addAdded assertCommentPresent(text) and assertCommentNotPresent(text) methods. Fixes 1277374.jevonwright
addAdded setTimeout() method. Fixes 1674646.jevonwright
fixCleaned up the quickstart documentation. Fixes 2404789.jevonwright

Release 2.0 - October 27, 2008

TypeChangesBy
updateUpdated to HtmlUnit 2.3.henryju
fixselectOptionByValue failed with Selenium Plugin. selectOption always failed, cannot find element. Other improvements to Selenium plugin. Fixes 2007985,2009776. Thanks to Josh Lane.joshlane
updateUpdated to HtmlUnit 2.1 and Java 1.5. Fixes 1950248. Thanks to Agnes Ro.henryju

Release 1.5 - april 22, 2008

TypeChangesBy
fixsetProxyAuthorization caused IllegalArgumentException with null username/password and not null host/port. Fixes 1860745. Thanks to Ward Bergmans.henryju
addAdded setHiddenField method to WebTestCase. Fixes 1793818. Thanks to Achim Huegen.henryju
fixassertCheckbox[Not]Present now works if HTML type attribute value is not lowercase (e.g.: type="CHECKBOX"). Fixes 1747033. Thanks to Carlo Possati.henryju
updateUpdate to HtmlUnit 1.14.henryju
addSupport multiple selects with same name. Fixes 1874212. Thanks to Mike C.henryju
fixassertButtonPresentWithText and clickButtonWithText now work for input button (submit, reset, button) matching the value attribute. Fixes 1845893. Thanks to Mike.henryju
addAdd basic Selenium support.henryju
updateRename IJWebUnitDialog in ITestingEngine.henryju

Release 1.4.1 - may 5, 2007

TypeChangesBy
fixgetPageSource() now returns source of the current frame or window. Fixes 1706395. Thanks to meilon.henryju
fixsetTextField now doesn't change the current working form if already set. clickRadioOption now doesn't change the current working form if already set. assertFormElementPresent now only searches the current working form if already set. Fixes 1708229,1710809,1712633. Thanks to Jon,Joe Fisher.henryju

Release 1.4 - march 17, 2007

TypeChangesBy
updateUpdate to HtmlUnit 1.11.henryju
addAdd a new method: getElementTextByXPath. Fixes 1677214. Thanks to Dragan Pazin.henryju

Release 1.4-RC4 - march 04, 2007

TypeChangesBy
addAdd new ResourceBundle related methods allowing formatting of resources. Fixes 993058. Thanks to Chris Eldredge.henryju
fixTable.getRows is now public. Fixes 1633967. Thanks to Dirk Jerusalem.henryju
fixgotoFrame should throw an Exception when no frame is found. Fixes 1638720.henryju
fixMake WebTestCase abstract. Fixes 735092.henryju
fixFix assertRadioButton[Not]Selected.henryju
fixbeginAt and gotoPage throw a TestingEngineResponseException on bad Http status code.henryju
fixMake WebTestCase.tearDown() protected. Make WebTestCase.tester protected. Add WebTestCase.getTester() method.henryju

Release 1.4-RC3 - january 11, 2007

TypeChangesBy
fixFix exception when trying to access a page with a loop redirection. Fixes 1628076.henryju
addAdd methods to test images in a web page: assertImagePresent(String imageSrc, String imageAlt), assertImageValid(String imageSrc, String imageAlt), assertImageValidAndStore(String imageSrc, String imageAlt, File out) Fixes 1531873. Thanks to Gregory Joseph.henryju
addAdd methods in TestContext to specify custom request headers. Fixes 1563168. Thanks to Jeff Grimshaw.henryju

Release 1.4-RC2 - december 5, 2006

TypeChangesBy
fixReset() function now check for the presence of a reset button.henryju
addAdd the possibility to manipulate frame (and iframe) by ID in addition to their name.henryju
addAdd saveAs(File f) and assertDownloadedFileEquals(File expected) methods to check downloaded response as a binary File.henryju
addAdd getServeurResponse() method to debug HTTP response.henryju

Release 1.4-RC1 - november 20, 2006

TypeChangesBy
fixsubmit([...]) methods now detect image input elements.henryju
addAdd setWorkingForm(int index) method to select the current form by its index.henryju
updateUpdate to HtmlUnit 1.10.henryju
fixFix cookie support. You can now properly manually add cookie to the conversation by using TestContext.addCookie() before calling beginAt().henryju
addAdd setExpectedJavascript[Alert/Confirm/Prompt] methods to check presence of Javascript message boxes.henryju
addAdd support for Basic and Digest Authentication using Context.setAuthorization(). Context.setNTMLAuthorization() and Context.setProxyAuthorization may also work (not tested).henryju
fixbeginAt and gotoPage now accept absolute URL beginning with "http://", "https://" or "www." Fixes 1554148. Thanks to Joe Athman.henryju
addAdd new methods: assertCheckBox[Not]Selected(String name, String value) to deal with multiple checkboxes with the same name. Fixes 1575956. Thanks to Lasse Koskela.henryju
fixassertButtonPresentWithText(String) was checking on "value" attribut value instead of text between button tag. Fixes 1567947. Thanks to Jack.henryju
fixselectOption() reset previous setWorkingForm() action. Problematic with 2 selects with same name in 2 different forms. Fixes 1565634. Thanks to Veenay Dodia.henryju

Release 1.3 - july 28, 2006

TypeChangesBy
removeassertFormParameterValue is now deprecated. Please use more specific method, like assertTextFieldEquals, assertSelectedValueEqual, ... Thanks to Fred Burlet.henryju
addAdd assertHiddenFieldPresent method to check presence of an hidden field with given value. Thanks to Fred Burlet.henryju
addAdd assertTextFieldEquals method to check content of a text field (text input, password input, textarea). Thanks to Fred Burlet.henryju
fixsetTextField is now working with TextArea. Thanks to Fred Burlet.henryju
fixCurrent form was saved but not reseted when page content change. Thanks to Mark Chaimungkalanont.henryju

Release 1.3-RC2 - july 07, 2006

TypeChangesBy
addShow the getTable() method in WebTestCase to allow custom assertions. Thanks to Tetyana Gimgina.henryju
addIntroduce the setFormElement() back as a deprecated method that wraps setTextField(). Fixes 1517851. Thanks to Tetyana Gimgina.henryju
updateUpdate to HtmlUnit 1.9.henryju
addAllow selection of forms with same name (with index). Add setWorkingForm(String nameOrId, int index) to the API. Fixes 1515297. Thanks to Jeffrey W. Badorek.henryju

Release 1.3-RC1 - june 27, 2006

TypeChangesBy
addAdded ability to navigate to windows / assert presence by window id. Thanks to Buhi Mume.henryju
removeRemove HttpUnit testing engine.henryju
updateRefactoring of Table assertions to handle perfectly colspan and rowspan.henryju
addAdded XPath methods to core API.henryju
updateSplit jWebUnit in modules: one for the core (jWebUnit API), one for the tests (that all plugins should pass), and one for each plugin (currently HtmlUnit). This way, for example, when you want to use one plugin, you don't have to include all others dependencies.henryju
updateUpdated to Jetty 6 for running tests. Need less dependencies and run faster.henryju
addAdded HtmlUnitDialog, that provide better Javascript support.henryju
addAdded Maven 2 support. There are many reports available on the website.henryju
updateAdded new method to clickButtonWithText. I believe it is useful addition to existing functionality as we already have assertButtonPresentWithText(). Fixes 1064807.Nicholas Neuberger
addIntegrated patch for multiple submit buttons with different values. API change - assertSubmitButtonValue(button, value) now assertSubmitButtonPresent(button, value). Fixes 800660. Thanks to Dragos Manolescu.Jim Weaver
addAssert button (not) present with text added. Fixes 1005396. Thanks to John Evans.Martijn Dashorst
addAdded ability to navigate to windows / assert presence by window title. Fixes 999600.Jim Weaver
addAdded assert select option present / not present. Fixes 979856. Thanks to Kenny MacLeod.Jim Weaver
addonchange event bug fixed / test added. Fixes 981534.Jim Weaver
fixMemory leak in WebTestCase. Note: tester is no longer allocated at constructor time, but just before 'setUp' is called. Fixes 972992. Thanks to Budi Boentaran.Martijn Dashorst
updatebetter support subclassing of WebTestCase Fixes 735087. Thanks to Oliver Haid.Vivek Venugopalan

Release 1.2 - june 13, 2004

TypeChangesBy
addassertTextNotInElement method additionJim Weaver
updateform assertion failure messages more accurateJim Weaver
addassertFormNotPresent method additionWilkes Joiner
addgoto a page directly by url Fixes 724337. Thanks to Alex Chaffee.
addsupport for clicking links by text when there are multiple links with same text on page Thanks to justin sampson.
addsupport for multiple checkboxes with different values Fixes 627735.Wilkes Joiner
addMoved the build system from Ant to Maven.Martijn Dashorst
updateUpgraded all dependencies (httpunit, rhino, nekohtml, xerces, junit) to their newest released version.Martijn Dashorst
addAdded support for cookies. Fixes 715841. Thanks to Vivek Venugopalan.Jim Weaver
fixWrong text in Assert Fixes 856218. Thanks to Roberto Cosenza.Vivek Venugopalan
fixquickstart.html setBaseUrl is mistyped Fixes 908440. Thanks to Vasile Alaiba.Vivek Venugopalan
fixassertFormElementPresent fails when a form is in an IFRAME Fixes 910242. Thanks to Hien Nguyen.Vivek Venugopalan
fixassertLinkPresentWithImage("foo") fails if foo isn't first Fixes 908372.Vivek Venugopalan
fixbroken link in jwebunit-1.1.1 set of files Fixes 918278. Thanks to Jim Cloughley.Vivek Venugopalan
fixprevent js files from being returned as response contentJim Weaver
fixFork enabled for ant-build compile. Fixes 727614. Thanks to Brad Clarke.Jim Weaver
fixForm submit overload for forms with multiple submit buttons. Fixes 745868. Thanks to Charles Blaxland.Jim Weaver

Release 1.1

TypeChangesBy
addSupport for frames and multiple windows. Thanks to Allen Wu.
addSupport for non-submit buttons (input type='button').
addSupport for accessing form elements by display label. Thanks to Justin Sampson.
addSupport for form reset and onReset event.
fixFixed problem with onClick javascript event not being triggered by clickLink methods.
updateHttpUnit 1.5 incorporated, which also replaces jTidy with nekoHtml.

Release 1.0

TypeChangesBy
addSupport for links with images contributed. Thanks to Justin Sampson.
addMethods were added to assert and navigate links with images by filename.
addassertFormElementEmpty method added - a convenience.
updateassertHasForm renamed to assertFormPresent to be consistent with other methods.

Release RC2

TypeChangesBy
addSupport for Radio Options.
addMethods were added to support interaction with and testing of radio button groups.
addSelect boxes.
addMethods were added to support interaction with and testing of single-select elements. Multi-select elements are not yet supported.
updateFormControl renamed to FormElement.
updateMethods related to setting and testing of form input fields were renamed for consistency. All such methods now refer to "FormElement".
updateInResponse renamed to Present. AssertXInResponse methods were renamed to AssertXPresent for consistency with other method names.
updateMultiple Form support simplified. The two submitForm methods (submitForm(formName) and submitForm(formName, buttonName)) where removed. To explicitly indicate which form to work with on a multi-form page, use the new setWorkingForm method. The two remaining submit methods (submit() and submit(buttonName)) are used to submit the form when ready.
updateFormControl renamed to FormElement
updateClickLink signature change. clickLink parameter is now the link id. To navigate a link based on text contained in the link, use clickLinkWithText.
updateAccess to HttpUnit Response, Request, WebConversation opened up.
updateNew HttpUnit (1.4.5) utilized, which provides JavaScript support.
updateHttpUnitDialog class changed to act as a WebClientListener and update the response upon responseReceived call back.
updateUpdated to JUnit 3.8.1.

Release RC1

TypeChangesBy
addFirst release.