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

后端 未结 3 1792
耶瑟儿~
耶瑟儿~ 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: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.

提交回复
热议问题