Using WatiN and FitNesse.

To use WatiN with FitNesse, you have two options:

  • Write WatiN code in your Fixtures.
  • Use WatiNFixture, written and maintained by Jeff Parker.

In both situations you need to modify and recompile the .Net fitserver to run
your tests in an STA.

Open de main.cs file of the FitServer project and apply the STAThread attribute
to the main methode. The code will then look like this:

// Modified or written by Object Mentor, Inc. for inclusion with FitNesse.
// Copyright (c) 2002 Cunningham & Cunningham, Inc.
// Released under the terms of the GNU General Public License version 2 or later.
using System.Threading;
namespace FitServer

  public class FitServerMain
    public static int Main(string[] CommandLineArguments)
      fitnesse.fitserver.FitServer fitServer = new fitnesse.fitserver.FitServer();
      return fitServer.ExitCode();