111,126
社区成员
发帖
与我相关
我的任务
分享
if (webBrowser1.Url.ToString() == "http://www.baidu.com/")
{
webBrowser1.Document.GetElementById("kw").SetAttribute("value", "合适的房间");
this.webBrowser1.Document.GetElementById("su").InvokeMember("click");
}
for (int i = 0; i < webBrowser1.Document.Links.Count; i++)
{
if (webBrowser1.Document.Links[i].ToString().IndexOf("www") == -1)
{
}
}