Beispiel #1
0
 /// <summary>
 /// Returns if the currently focused element is the "Recent
 /// Documents" window
 /// </summary>
 /// <param name="focusedElement">focused element</param>
 /// <returns>true if it is</returns>
 protected bool isRecentDocuments(AutomationElement focusedElement)
 {
     return(AgentUtils.IsElementOrAncestorByName(focusedElement,
                                                 "NetUIFullpageUIWindow",
                                                 "ControlType.Pane", ""));
 }