public static void CollapseComboBox(this AutomationElement el) { if (!el.TryCollapse()) { el.DoAction(); } }
public static void ExpandComboBox(this AutomationElement el) { if (!el.TryExpand()) { el.DoAction(); } }