Completed
Last Updated: 31 May 2017 13:48 by ADMIN
ADMIN
Elena
Created on: 09 May 2017 12:26
Type: Feature Request
0
Testing Framework// WPF application window would not be detected if initially its visibility is set to hidden
1.The attached sample application initially displays three windows. Two of them are visible and one is hidden. Clicking the button in the second window will make the third one visible. 

Actual: Manager.ActiveApplication.Windows.Count; returns 2 even when the third window is visible. 

Expected: To detect the third window and count it as well. 

Note: If using the Test Studio UI recorder the third window is detected once shown and the recorder is attached to it as expected. 
Attached Files:
1 comment
ADMIN
Ivaylo
Posted on: 31 May 2017 13:48
This is not problematic behavior, you simply need to add a small execution delay and the correct count is logged. Refer to the example below:

            System.Threading.Thread.Sleep(500);
            Log.WriteLine(Manager.ActiveApplication.Windows.Count.ToString());