WatiN LogonDialogHandlers not working correctly in Windows 7

后端 未结 7 1196
旧巷少年郎
旧巷少年郎 2020-12-07 02:01

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 us

7条回答
  •  眼角桃花
    2020-12-07 02:10

    Nicholas Riley post works like a charm, however including the using System.Windows.Automation might be a little tricky. I thought microsoft would put this in the GAC, but they do not, at least for me running Windows 7 professional. I even downloaded the Automation Toolkit from here.

    Turns out, there is a subject here on stack overflow that shows where the dll's are that you can browse to include as references in your project. The link for that is here.

    Essentially, you just need to reference two dll's. UIAutomationClient.dll and UIAutomationTypes.dll (both in the same directory).

提交回复
热议问题