public static bool Compare (AutomationElement el1, AutomationElement el2)
{
if (el1 == null)
throw new ArgumentNullException ("el1");
if (el2 == null)
throw new ArgumentNullException ("el2");
return Compare (el1.GetRuntimeId (),
el2.GetRuntimeId ());
}