protected bool isFileExplorer(AutomationElement windowElement)
{
return (windowElement != null) ? (String.Compare(windowElement.Current.ClassName, "CabinetWClass") == 0 &&
String.Compare(windowElement.Current.ControlType.ProgrammaticName, "ControlType.Window") == 0) : false;
}