本文整理匯總了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());
}
}
示例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);
}
示例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();
}
}
示例4: Open
void Open()
{
try
{
ie = new IE();
ie.ShowWindow(NativeMethods.WindowShowStyle.Hide);
ie.ClearCache();
ie.ClearCookies();
}
catch { }
//ie.ShowWindow(NativeMethods.WindowShowStyle.Hide);
}