提前致谢..
如何在 for 循环中的每个元素单击语句后重新加载我的 Web 浏览器???
case "Assessment Database - Initial Search Results":
objHtmlDoc = (System.Windows.Forms.HtmlDocument)webBrowser1.Document;
HtmlElementCollection row3 = (HtmlElementCollection)objHtmlDoc.GetElementsByTagName("input");
foreach (HtmlElement element in row3)
{
if (element.GetAttribute("type").ToString() == "submit" && element.GetAttribute("name").ToString() == "View")
{
element.Focus();
element.RaiseEvent("onclick");
//webBrowser1.GoForward();
// webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted);
}
}
break;