/// <summary> /// Checks if the specified element representing the Eudora /// window is the Browse email window /// </summary> /// <param name="element">the automation element</param> /// <returns>true if it is</returns> protected bool isBrowseEmailWindow(AutomationElement element) { Log.Debug(); bool retVal = element != null && (AgentUtils.IsElementOrAncestor(element, "Internet Explorer_Server", "ControlType.Pane") || AgentUtils.IsElementOrAncestor(element, "EudoraEdit", "ControlType.Pane")); Log.Debug("Returning " + retVal); return(retVal); }