16,554
社区成员
发帖
与我相关
我的任务
分享
HtmlElementCollection elc = this.webBrowser1.Document.GetElementsByTagName("input");
foreach (HtmlElement el in elc)
{
if (el.GetAttribute("type").Equals("submit"))
{
el.InvokeMember("Click");
}
}
以上代码来自:
http://stackoverflow.com/questions/6233151/c-sharp-how-to-click-button-auttomaticly-via-webbrowserme.webbrowser1.document.all("A").innerText = json