Archive for November, 2006

WatiN 0.9 is released

Thursday, November 2nd, 2006

Jeroen van Menen has released WatiN 0.9. The full release notes for Watin 0.9 can be found at http://watin.sourceforge.net/releasenotes-0-9-0-4000.html. Highlights of this release are:

  • Added an extensible model for handling IE dialogs through the DialogWatcher instance
    of each DomContainer (IE and HTMLDialog). If no specific handling of a dialog (type)
    is needed, DialogWatcher will automatically close any dialog that pops up.
  • This release contains the following dialog handlers:
    • Added support for Logon dialog handling (thanks to Bruce McLeod for the initial implementation).
      Some of the constructors of the IE class accept an instance of LogonDialogHandler
      to automatically logon to a website.
    • Improved support for handling alert and confirm dialogs in various ways through AlertAndConfirmDialogHandler, AlertDialogHandler, ConfirmDialogHandler and SimpleJaveDialogHandler.
    • Added support for handling Certificate warning dialog.
  • Added support for automating a frames page which shows websites from different
    domains (thanks to Ken Herman for the initial implementation).
  • Added support for IFrame element(s) using the ie.Frames syntax (thanks to Gaurav
    Jayal for supplying some good iframe web pages to test with).
  • Added support for file upload (input element of type upload) through
    ie.FileUpload.Set(MyFile).
  • Added support for ie.Element() and ie.Elements to get any or all elements in a
    document (or elements container like the div element). This way elements not natively
    supported by WatiN can also be accessed through the WatiN API. If an element can contain
    elements, like the html element, the return value of ie.Element can be casted
    to ElementsContainer.
  • Added basic support for tags through ie.Button() and ie.Buttons. Use
    ie.Element() or ie.Elements instead if access to the inner elements is required.
  • Improved the speed of the Table.FindRow implementation. It uses a special
    TableRowFinder instead of looping through all kinds of collections.
  • Speed is improved when closing an IE instance. This is because all IE instances in the
    same process share one instance of DialogWatcher. Also disposing DialogWatcher is
    speed up by terminating the watcher thread earlier.
  • WatiN allows the use of regular expressions in some more situations.
  • Removed all constructors of the IE class that had autoclose as an argument. Use the ie.AutoClose property if you need to change the auto close behaviour of an IE instance. The default value of AutoClose is true.
  • Made a change to the new IE implementation to better support using WatiN on Vista
    with User Account Control (UAC) turned on. (Thanks to Bruce McLeod