當前位置: 首頁>>代碼示例>>C#>>正文


C# IE.ClearCache方法代碼示例

本文整理匯總了C#中WatiN.Core.IE.ClearCache方法的典型用法代碼示例。如果您正苦於以下問題:C# IE.ClearCache方法的具體用法?C# IE.ClearCache怎麽用?C# IE.ClearCache使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WatiN.Core.IE的用法示例。


在下文中一共展示了IE.ClearCache方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: frmWebBowser_Load

        private void frmWebBowser_Load(object sender, EventArgs e)
        {
            Settings.WaitForCompleteTimeOut = 120000;
            Settings.AttachToBrowserTimeOut = 120000;
           
            webBrowser1.ScriptErrorsSuppressed = false;

            Settings.AutoStartDialogWatcher = false;
            ie = new IE(webBrowser1.ActiveXInstance);
            try
            {
                ie.ClearCache();
            }
            catch
            {
            }
            //ie = new IE();
            dialogWatcher = new DialogWatcher(new Window(this.Handle));
            dialogWatcher.CloseUnhandledDialogs = false;
            webpage = new WebPage();
            lookUpEditPage.Properties.DataSource = WebPage.GetAll();
            lookUpEditPage.Properties.DisplayMember = "Page";
            lookUpEditPage.Properties.ValueMember = "ID";
            if (pageID > 0)
            {
                lookUpEditPage.EditValue = long.Parse(pageID.ToString());
            }
        }
開發者ID:phinq19,項目名稱:qlcongviec,代碼行數:28,代碼來源:frmWebBowser.cs

示例2: SetUp

        public void SetUp()
        {
            ie = new IE();

            ie.Refresh();
            ie.ClearCache();

            Settings.WaitForCompleteTimeOut = 240;

            // to hide IE window
            // ie.ShowWindow(WatiN.Core.Native.Windows.NativeMethods.WindowShowStyle.Hide);
        }
開發者ID:sagasu,項目名稱:tddLegacy,代碼行數:12,代碼來源:BeTest.cs

示例3: QUnitParser

 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="maxWaitInMs">The maximum number of milliseconds before the tests should timeout after page load; -1 for infinity, 0 to not support asynchronous tests</param>
 public QUnitParser(int maxWaitInMs)
 {
     _maxWaitInMs = maxWaitInMs < 0 ? Int32.MaxValue : maxWaitInMs;
     _ie = new IE();
     if (NQUnit.HideBrowserWindow)
     {
         _ie.ShowWindow(NativeMethods.WindowShowStyle.Hide);
     }
     if (NQUnit.ClearCacheBeforeRunningTests)
     {
         _ie.ClearCache();
     }
 }
開發者ID:mattdotmatt,項目名稱:NQUnit,代碼行數:17,代碼來源:QUnitParser.cs

示例4: Open

 void Open()
 {
     try
     {
         ie = new IE();
         
         ie.ShowWindow(NativeMethods.WindowShowStyle.Hide);
         ie.ClearCache();
         ie.ClearCookies();
     }
     catch { }
     //ie.ShowWindow(NativeMethods.WindowShowStyle.Hide);
 }
開發者ID:phinq19,項目名稱:qlcongviec,代碼行數:13,代碼來源:MultiThreadForum.cs


注:本文中的WatiN.Core.IE.ClearCache方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。