Skip to content
Maarten Groeneweg edited this page Apr 13, 2015 · 5 revisions

Install

There are two ways of installing WbTstr.Net, if you have VS2013 you can download our extension. If you use another version of Visual Studio or if you want more control over the project layout you can also load it via NuGet.

Visual Studio 2013 Extension

The easiest way to get started with WbTstr.Net is to install our Visual Studio 2013 Extension from the Visual Studio Gallery [Link will follow soon].

  1. Install the Extension from [insert link]
  2. Simply create a new project of the type "Mirabeau WbTstr.Net"
  3. Build to retrieve the dependencies

NuGet Package

  1. Create a new unit test project following the instructions of your favourite unit test framework.
  2. Type Install-Package WbTstr.Net.SeleniumWebdriver in the Package Manager Console

Your first test

If you installed the VS extension you can add a new test with "add new item" (Ctrl+Shift+A) and select the WbTstr.Net.TestClass.

using FluentAutomation;
using NUnit.Framework;

namespace FLuent101.Examples 
{
	public class MyFirstTest : FluentTest
	{
	    public MyFirstTest()
	    {
	      WbTstr.Configure()
		  .PreferedBrowser().IsChrome();
		  WbTstr.Bootstrap();
	    }

	    [TestCase]
	    public void Test1()
	    {
	       I.Open("http://www.mirabeau.nl");
		   I.Assert.Exists("H1");
	    }
	}

}

Clone this wiki locally