public static IEnumerable<AutomationElement> GetAll(AutomationElement window, string prefix = null) { var res = window.FindAllChildrenByControlType(ControlType.Text); if (prefix != null) res = res.Where(l => l.Current.AutomationId.StartsWith(prefix)); return res; }
public static IEnumerable<AutomationElement> GetAll(AutomationElement window) { var res = window.FindAllChildrenByControlType(ControlType.ComboBox); return res; }
public static IEnumerable<AutomationElement> GetAll(AutomationElement window) { var tbs = window.FindAllChildrenByControlType(ControlType.Button); return tbs; }
public static GuiMenuItem GetFirstMenuItem(AutomationElement window) { AutomationElement automationElement = window.FindAllChildrenByControlType(ControlType.MenuItem).First(); return new GuiMenuItem(automationElement); }