Hi everybody,
I encountered a weird test failure related to multi-window test. Any advice would be much appreciated.
Here is a simplified version of the test,
- Application launch with the main window
- Create a new window
- Check the new window exists.
Application.GetWindows() always return 1 window regardless how many new windows are created in step (2)
Meanwhile, my application will set all window.Owner to null. This is to show each window as separate items in the Windows Taskbar.
UIVerify shows the new window and main window at the same levels in its component tree, which matches the owner=null setting.
I doubt that White cannot access the new windows because of they are detached from the main window?
Any other means to access "detached" windows in White?
Regards,
Leung Wang Hei