WatiN LogonDialogHandlers not working correctly in Windows 7

后端 未结 7 1223
旧巷少年郎
旧巷少年郎 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:08

    Since nobody answered your question, I will, but unfortunately without ready solution.

    I don't have Windows 7 to try at this moment, but it seems that WatiN's LogonDialogHandler is not compatible with Windows 7, so you have to write your own DialogHandler. The simplest way is to inherit from BaseDialogHandler. You can look at the source code of existing dialog handlers in WatiN. I made my self very simple and not universal one for handling certificate dialog. WinSpy++ can be very useful during implementation.

提交回复
热议问题