常见的获取控件并点击(自动登录): var txtUserID = wbsTask.Document.All["userName"]; var txtPsd = wbsTask.Document.All["password"]; var txtVrf = wbsTask.Document.All["code"];var btnSubmit = wbsTask.Document.All["btnSubmit"]; var cod…
public void FindKeyWord(string keyWord) { WebBrowser wb = new WebBrowser(); foreach (HtmlElement item in wb.Document.All) { if (item.InnerText != null) { if (ClearChar(item.InnerText) == keyWord) { Point point = GetPoint(item); wb.Document.Window.Scr…