private void timer1_Tick(object sender, EventArgs e) { webBrowser1.Document.GetElementById("signin-email").SetAttribute("value", "exampleID"); webBrowser1.Document.GetElementById("signin-password").SetAttribute("value","examplePASSWORD"); foreach (HtmlElement el in webBrowser1.Document.GetElementsByTagName("button")) { if (el.GetAttribute("className") == "submit btn primary-btn flex-table-btn js-submit") // i found button control with this { el.InvokeMember("click"); // click to button /*if (success) // control .. here is my problem { timer1.Stop(); mbox("success login"); } else { timer1.Stop(); mbox("login failed"); } */ break; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)