using WatiN.Core出错

看似疯癫 看似疯癫 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
代码如下:
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
如图,求解

...全文
评论 2
收藏 已收藏
分享
返回顶部
看似疯癫
C# 111,129 成员 642,540 内容