Beispiel #1
0
 /// <summary>
 /// Checks if the specified element is the message body field
 /// </summary>
 /// <param name="element">the automation element</param>
 /// <returns>true if it is</returns>
 protected bool isMessageBodyField(AutomationElement element)
 {
     return(AgentUtils.IsElementOrAncestorByAutomationId(element,
                                                         "EudoraEdit",
                                                         "ControlType.Pane",
                                                         "59664"));
 }
Beispiel #2
0
 /// <summary>
 /// Checks if the specified element is the TO field
 /// </summary>
 /// <param name="element">the automation element</param>
 /// <returns>true if it is</returns>
 protected bool isToField(AutomationElement element)
 {
     return(AgentUtils.IsElementOrAncestorByAutomationId(element,
                                                         "Edit",
                                                         "ControlType.Document",
                                                         "5050"));
 }
Beispiel #3
0
        /// <summary>
        /// Checks if the specified element representing the Eudora
        /// window is the mail composition window
        /// </summary>
        /// <param name="element">the automation element</param>
        /// <returns>true if it is</returns>
        protected bool isMailComposeMessageWindow(AutomationElement element)
        {
            Log.Debug();
            bool retVal = element != null &&
                          AgentUtils.IsElementOrAncestorByAutomationId(element,
                                                                       "EudoraEdit",
                                                                       "ControlType.Pane",
                                                                       "59664");

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