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)
{
}
}
已经取出页面所有链接,现在想单击页面中含有某段字符串的链接
求指导
坐等回复
和开发自己的浏览器是一样的思路
加个判断就OK了
webBrowser1.Document.Links[j].OuterHtml,,,,是否是你想要的内容,然后点击。 你是要做电击器吧,。放弃吧,,,,webBrowser1 实现的不能用的 www.aaspx.com 里有具体内容