I have an AutomationElement popup for a popup ( OpenFileDialog in my case) from the children main window:
// I had automationElement for main window in advance AutomationElement mainWindow = ... // Some condition to distinguish your popup from others // if you may have more than one popup. // Otherwise this condition might check ControlType == Window Condition popupCondition = ... var popup = mainWindow.FindFirst(TreeScope.Children, popupCondition);
source share