The type or namespace name 'NUnit' could not be found

后端 未结 3 1780
耶瑟儿~
耶瑟儿~ 2020-12-20 12:02

I have a c# code.(which is exported from selenium IDE)

using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
usin         


        
相关标签:
3条回答
  • 2020-12-20 12:12

    You need to add a reference to the NUNIT dll

    0 讨论(0)
  • 2020-12-20 12:34

    It seems like you have references missing. From official Selenium docs page:

    Add references to the following DLLs: nmock.dll, nunit.core.dll, nunit. framework.dll, ThoughtWorks.Selenium.Core.dll, ThoughtWorks.Selenium.IntegrationTests.dll and ThoughtWorks.Selenium.UnitTests.dll

    For your current problem, you need to reference at least NUnit.Framework.dll and Selenium dlls.

    Please read the docs page for more info.

    0 讨论(0)
  • 2020-12-20 12:37

    Right click on references in the solution explorer and click add reference. You will need to browse for the nunit.framework.dll

    0 讨论(0)
提交回复
热议问题