WatiN LogonDialogHandlers not working correctly in Windows 7

Posted by Clint on Stack Overflow See other posts from Stack Overflow or by Clint
Published on 2010-05-15T17:48:11Z Indexed on 2010/05/15 17:54 UTC
Read the original article Hit count: 861

Filed under:
|

I have recently updated to Windows 7, VS2010 and IE8. We have an automation suite running tests against IE using WatiN. These tests require the logon dialog handler to be used in order to log different AD Users into the IE Browser.

This works perfectly when using Windows XP and IE8, but now using Windows 7 has resulted in the Windows Security dialog box no longer being recognised, the dialogue box is just being ignored. This is the method being used to startup the browser:

        public static Browser StartBrowser(string url, string username, string password)
        {
            Browser browser = new IE();
            WatiN.Core.DialogHandlers.LogonDialogHandler ldh = new WatiN.Core.DialogHandlers.LogonDialogHandler(username, password);
            browser.DialogWatcher.Add(ldh);
            browser.GoTo(url);
            return browser;
        }

any suggestions or help would be greatly appreciated...

© Stack Overflow or respective owner

Related posts about watin

Related posts about windows-7