Tiger858
asked on
WatiN Help C#
hi i'm trying to do the first WatIn  tutorial thing and i seem to be getting stuck and don't know why
here is my code
and the errors are
Warning	1	A reference was created to embedded interop assembly 'c:\screencasts\GettingSta rted\packa ges\WatiN. 2.1.0\lib\ net40\Inte rop.SHDocV w.dll' because of an indirect reference to that assembly created by assembly 'c:\screencasts\GettingSta rted\packa ges\WatiN. 2.1.0\lib\ net40\Wati N.Core.dll '. Consider changing the 'Embed Interop Types' property on either assembly.	c:\screencast s\GettingS tarted\Get tingStarte d\CSC	G ettingStar ted
Warning	2	A reference was created to embedded interop assembly 'c:\screencasts\GettingSta rted\packa ges\WatiN. 2.1.0\lib\ net40\Micr osoft.msht ml.dll' because of an indirect reference to that assembly created by assembly 'c:\screencasts\GettingSta rted\packa ges\WatiN. 2.1.0\lib\ net40\Wati N.Core.dll '. Consider changing the 'Embed Interop Types' property on either assembly.	c:\screencast s\GettingS tarted\Get tingStarte d\CSC	G ettingStar ted
Error	3	Program 'c:\screencasts\GettingSta rted\Getti ngStarted\ obj\Debug\ GettingSta rted.exe' does not contain a static 'Main' method suitable for an entry point	c:\screencasts\Ge ttingStart ed\Getting Started\CS C	Getti ngStarted
how do i fix this to get this to run
thanks
here is my code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using WatiN.Core;
namespace GettingStarted
{
[TestFixture]
[RequiresSTA]
public class Class1
{
[Test]
public void Should_start_google()
{
using (var browser=new IE("google.com"))
{
browser.TextField(Find.ByName("q")).TypeText("hello");
browser.Button(Find.ByName("btnG")).Click();
}
}
}
}
and the errors are
Warning	1	A reference was created to embedded interop assembly 'c:\screencasts\GettingSta
Warning	2	A reference was created to embedded interop assembly 'c:\screencasts\GettingSta
Error	3	Program 'c:\screencasts\GettingSta
how do i fix this to get this to run
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Regards Marten