var btns = webBrowser1.Document.GetElementsByTagName(“input ”);foreach (HtmlElement btn in btns ){ if (btn.GetAttribute(“class”) == ”loginbut”) {btn.InvokeMember(“click”); }}
—-
varaccount = webBrowser1.Document.GetElementById(“account”); varpassword = webBrowser1.Document.GetElementById(“password”); account.SetAttribute(“value”,”q1397257371”); password.SetAttribute(“value”,”1denghanbo”); varlogin = webBrowser1.Document.GetElementById(“login-form”).Children[4].Children[2].Children[0]; login.InvokeMember(“click”);