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()); } }
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); }
/// <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(); } }
void Open() { try { ie = new IE(); ie.ShowWindow(NativeMethods.WindowShowStyle.Hide); ie.ClearCache(); ie.ClearCookies(); } catch { } //ie.ShowWindow(NativeMethods.WindowShowStyle.Hide); }