public override void WaitForComplete(int waitForCompleteTimeOut) { if (hasDialogHandler == null) { hasDialogHandler = new HasDialogHandler(); DialogWatcher.Add(hasDialogHandler); } WaitForComplete(new IEWaitForCompleteWithDialogs((IEBrowser)NativeBrowser, waitForCompleteTimeOut, hasDialogHandler.HasDialog)); }