WatiN  Overview

Welcome at the WatiN (pronounced as What-in) website. Inspired by Watir development of WatiN started in December 2005 to make a similar kind of Web Application Testing possible for the .Net languages. Since then WatiN has grown into an easy to use, feature rich and stable framework. WatiN is developed in C# and aims to bring you an easy way to automate tests with Internet Explorer.


WatiN  Example

Following is the Hello world example of web test automation; searching Google.

[Test]
public void SearchForWatiNOnGoogle()
{
 using (IE ie = new IE("http://www.google.com"))
 {
  ie.TextField(Find.ByName("q")).TypeText("WatiN");
  ie.Button(Find.ByName("btnG")).Click();
  
  Assert.IsTrue(ie.ContainsText("WatiN"));
 }
}


WatiN  Feature  List

  • Automates all major HTML elements
  • Find elements by multiple attributes
  • Supports AJAX website testing
  • Supports frames (cross domain) and iframes
  • Supports popup dialogs like alert, confirm, login etc..
  • Supports HTML dialogs (modal and modeless)
  • Supports creating screenshots of webpages
  • Has a basic (extensible) logging mechanism
  • Works with Internet Explorer 6, 7, 8 beta 1 and FireFox 2
  • Developed in C#
  • Licensed under the Apache License 2.0
  • And.. If you miss some feature, you can add it yourself because it is open source!

Don't forget to download the Internet Explorer Developer Toolbar. This will help tremendously in exploring the structure of a webpage so you can create your test automation more easily.


"... it will give you exactly the experience that you'll have when a customer hits the site, which ends up being a far more accurate assessment of the application quality."

Scott Guthrie
General Manager within the Microsoft Developer Division.
Comment taken from Jeremy D. Millers blog

". it feels like it should have shipped out of the box with Visual Studio Team Edition for Software Testers."

Bruce McLeod
Principal Consultant for Devtest Pty Ltd.
www.devtest.com

"What a great tool!!! We are using it with CruiseControl.Net. We run roughly 1k tests each build."

David Strickland
Vice President of Development
Swingvote, LLC

"Love your product. I'm new to WatiN but have spent the last couple of weeks using it and I love it. Very clean interface and it's very quick and easy to turn out tests."

Todd Lichty

Support This Project

Sponsor

LinkiT Projects

News

March 12, 2008

Released WatiN 2.0 CTP!

Start automation IE or FireFox with WatiN as of today. A big thanks to Edward Wilde for all the FireFox code!

Read how to get started and download the release here

Februari 2, 2008

I started a blog about WatiN and more at watinandmore.blogspot.com.

Januari 21, 2008

Gaiaware uses WatiN to test their commercial product Gaia AJAX widgets. Read their succes story and watch a screencast here.

Januari 17, 2008

sponsor: LinkiT Projects

A big welcome to our new and first sponsor: LinkiT Projects. They will provide licenses for the commercial software used to develop WatiN and maybe a public continues integration server.

Januari 16, 2008

Update: New releases scheduled for early februari. Yes, releases! We will release WatiN 1.3, but more interesting there will be a CTP version of WatiN 2.0 with FireFox support! So check back soon.

October 23, 2007

Released WatiN 1.2.1

Bug fix release regarding Find.ByText(string).

Read the release notes and download it from here.

October 14, 2007

Since the last release the online MSDN documentation wasn't available. This has been resolved.

October 4, 2007

Released WatiN 1.2.0!

Many, many new features! A big thanks to all who contributed.

Read the release notes and download it from here.

Aug 26, 2007

An updated roadmap will be up somewhere this week. A new release is scheduled for late September.

Aug 24, 2007

WatiN and WatiN test recorder have made it into THE "Scott Hanselman's 2007 Ultimate Developer and Power Users Tool List for Windows".

Aug 23, 2007

WAX: Use MS Excel to automate your webtesting.

Check out this new WatiN test runner created by Edward Wilde. It allows you to write your tests in MS Excel and execute them with WatiN.

May 16, 2007

Released WatiN 1.1.2!

Fixed yet another issue. Everybody using the 1.1.0 or 1.1.1 release is strongly adviced to upgrade to this new release.

Read the release notes and download it from here.

May 15, 2007

Released WatiN 1.1.1!

Fixes a (major) issue with firing events on elements on a frames page. Everybody testing websites with frame pages is strongly adviced to upgrade to this new release.

Read the release notes and download it from here.

May 2, 2007

Released WatiN 1.1.0!

Read the release notes and download it from here.

Also restyled the website. Do you like it? (some parts are still in progress)

April 9, 2007

A new test recorder for WatiN is launched. Congrats to Daaron, Nick and others who helped out!

April 8, 2007

The WatiN community is thriving! Bruce McLeod started a sample project. Doug Seelinger published a WatiN screen cast. Even Scott Guthrie talks about WatiN. And last but not least, the WatiN recorder world looks very promising!

Updated the roadmap to reflect the upcoming 1.1 release in the first week of may.

March 1, 2007

Released WatiN 1.0.0.4000!

Read the release notes and download it from here. WatiN now uses the Apache License 2.0

February 26, 2007

WatiN has been downloaded more then 5000 times! Updated the roadmap to reflect the up coming 1.0 release on 28 February.

January 29, 2007

Updated the roadmap. Release 1.0 is making  progress!

January 8, 2007

Updated documentation on using WatiN with SharpDevelop and Fitnesse.

Jesus Jimenez has posted an article about WatiN on code project!

Updated the roadmap.