private AutomationElement FindModalWindowElement(SearchCriteria searchCriteria, AutomationElementFinder windowFinder) { var windowElement = windowFinder.FindWindow(searchCriteria) ?? Finder.FindWindow(searchCriteria); return windowElement; }
private AutomationElement FindModalWindowElement(string title, Process process, AutomationElementFinder windowFinder) { var windowElement = windowFinder.FindWindow(title, process.Id) ?? Finder.FindWindow(title, process.Id); return windowElement; }