private void FindTitleAndLoadHref(string linkTitle) { Application.DoEvents(); for (int i = 0; i < 3; i++) { var linkList = CefFrameHelper.GetUrlListByHap(MainCefFrame, linkTitle); if (linkList.Count > 0) { MainCefFrame.LoadUrl(linkList[0]); break; } else { LB_Debug_info.Text = linkTitle; LogManager.WriteLog("没有找到 {0}".With(linkTitle)); Application.DoEvents(); } } }