Ejemplo n.º 1
0
        /// <summary>
        /// Checks if the specified element representing the Eudora
        /// window is the mail compose window
        /// </summary>
        /// <param name="element">the automation element</param>
        /// <returns>true if it is</returns>
        protected bool isMailComposeWindow(AutomationElement element)
        {
            Log.Debug();
            bool retVal = element != null &&
                          AgentUtils.IsAncestorByAutomationId(element,
                                                              "AfxMDIFrame70",
                                                              "ControlType.Pane",
                                                              "59648");

            if (retVal)
            {
                Log.Debug("Checking if sibling is to fieild");
                retVal = AgentUtils.IsSiblingByAutomationId(element, "Edit", "ControlType.Document", "5050");
                Log.Debug("isSibling returned " + retVal);
            }

            Log.Debug("Returning " + retVal);
            return(retVal);
        }