the window handle (HWND) to the Internet Explorer window. I iterate through all the child windows of the Internet Explorer window to find the handle to the alert window. But the problem is, i'm not able to get a handle to the alert window.
I tried to use spy and see what is the parent window of the alert window and in the 'Property Inspector' i can see that the parent of the alert window is 'Windows Internet Explorer'. Further i compared the handle of the 'Windows Internet Explorer' in the
'Property Inspector' with the one i get in my code and it matches. Butttt.... when i do
Where hWnd is the handle to 'Internet Explorer', i do not see the alert window in any of the 'childWnd'.
Also when i expand the 'Internet Explorer' in the Spy's main window i do not see the alert window although Property Inspector says 'Internet Explorer' in the parent of the alert window. Can someone please explain what is happening here?