I'm following the tutorial on WatiN for Visual C# but I can't get it to run. In case you're curious the video tutorial is here: http://watin.org/documentation/getting-started/ and the part where I don't have the same option is 2/3rds the way through. The video shows the presenter clicking on a grey area next to the line of code but I don't have that option. Instead I goto Test --> Run --> Tests in Current Context but it tells me it compiled successfully and won't run because I haven't loaded my test
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using WatiN.Core;
namespace GettingStarted
{
[TestFixture]
[RequiresSTA]
public class Class1
{
[Test]
public void Should_start_automating()
{
using (var browser = new IE("google.com"))
{
browser.TextField(Find.ByName("q")).TypeText("Hello Larry");
browser.Button(Find.ByName("btnK")).Click();
}
}
}
}