I run a very simple watin console application like below
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WatiN.Core;
namespace ConsoleApplication2
{
class Program
{
[STAThread]
static void Main(string[] args)
{
IE ie = new IE();
// point it to http://www.google.com
ie.GoTo("http://www.google.com");
// fill the search box
ie.TextField(Find.ByName("q")).TypeText("WatiN");
// performs click event
ie.Button(Find.ByValue("Google Search")).Click();
}
}
}
Which is not working. A pop up said that there's a missing .exe
file. I can not understand because it's just a console application. Why do I need the .exe
file?