public virtual AutomationElement FindWindow(SearchCriteria searchCriteria, int processId)
 {
     Condition condition = searchCriteria.AutomationConditionWith(new PropertyCondition(AutomationElement.ProcessIdProperty, processId));
     return automationElement.FindFirst(TreeScope.Children, condition);
 }