【发布时间】:2012-01-04 14:29:31
【问题描述】:
我正在尝试做快速入门示例,我在 VS2010 中使用 NuGet 引入了 ref,我在网页上抓取了示例代码,我看到了我的 NUnit 会话窗口,我点击了绿色箭头,但浏览器没有t 被调用(不启动)。我错过了什么?
using System;
using NUnit.Framework;
using WatiN.Core;
namespace FirstWatinProject
{
[TestFixture]
public class Class1
{
[Test]
[STAThread]
public void SearchForWatiNOnGoogle()
{
using (var browser = new IE("http://www.google.com"))
{
browser.TextField(Find.ByName("q")).TypeText("WatiN");
browser.Button(Find.ByName("btnK")).Click();
Assert.IsTrue(browser.ContainsText("WatiN"));
}
}
}
}
我在 NUnit 会话窗口中收到以下错误;
SearchForWaitOnGoogle 失败:System.IO.FileNotFoundException:可能 不加载文件或程序集 'Interop.SHDocVw, Version=1.1.0.0, 文化=中性等...
【问题讨论】:
标签: watin