I'm trying to build an automated testing frame work for one of our product. Some of the test cases involves performing automation in modal dialog. However, modal dialog blocks the UIAutomation code from executing. In another word, if I have a modal dialog opened by UIAutomation, nothing happends until I close the modal dialog.
In order to excute the UIAutomation code when the modal dialog displays, I've been trying to register an windowopenedevent handler that catches the modal dialog when it's opened, so I can execute the rest of testings within the windowopenedevent handler. However, the handler is NOT catching the event at all. I have no idea what is wrong, any suggestions?
Other workarounds for this scenario is welcome, too.