using WatiN.Core出错

看似疯癫 2014-02-24 09:04:28
代码如下:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using WatiN.Core;

using System.Threading;


namespace WatiNTest
{
class Program
{
[STAThread]
static void Main(string[] args)
{
// Open a new Internet Explorer window and
// goto the google website.
IE ie = new IE("http://www.google.com.hk", true);

// Find the search text field and type Watin in it.
ie.TextField(Find.ByName("q")).TypeText("WatiN");

// Click the Google search button.
ie.Button(Find.ByValue("Google 搜索")).Click();

// Uncomment the following line if you want to close
// Internet Explorer and the console window immediately.
//ie.Close();

}
}
}
已经引入WatiN.Core.dll
如图,求解

...全文
113 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ximenwuji 2014-02-24
  • 打赏
  • 举报
回复
没有用过,和楼主一块学习学习
本拉灯 2014-02-24
  • 打赏
  • 举报
回复
看看你引用的System.Web 是不是4.0.0.0的

111,092

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧