Modal window reach

May 20, 2009 at 3:54 PM
Edited May 21, 2009 at 11:21 AM

I have modal window which have pane as a parent. It is not present in application.GetWindows(), or in mainWindow.ModalWindows(). How I could get the Window object for this modal window I have?

Update: I have a problem with reaching this window using plain automation UI too.  Visual UI Automation Verify says that this dialog is part of the application, but it looks like actually it is not present in the app tree from the point of application. I use AutomationElement's searches on subtree to find any controls present on application, and TreeWalker but found nothing. I have a result running similar search for RootElement though. So I just use User32.FindWindow to get handle and then create AutomationElement from the result handle. 

Is there a way to get this dialog using White?