I have C # code (which is exported from Selenium IDE)
using System; using System.Text; using System.Text.RegularExpressions; using System.Threading; using NUnit.Framework; using Selenium; namespace SeleniumTests { [TestFixture] public class csharp { private ISelenium selenium; private StringBuilder verificationErrors; [SetUp] public void SetupTest() { selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://localhost:1924/"); selenium.Start(); verificationErrors = new StringBuilder(); } [TearDown] public void TeardownTest() { try { selenium.Stop(); } catch (Exception) {
I pasted this code into a console application (visual studio 2008).
After starting, I received the following errors:
Cannot find name of type or NUnit namespace. The type or namespace name "TestFixture" was not found. The type or namespace name "ISelenium" was not found. Type or namespace name 'SetUpAttribute' could not be found
What structure should be added to correct these errors?
c # frameworks selenium
Rananheer reddy
source share