public static AutomationElement QuickLinkCapture(this LeftPanelProxy left, string name) { var button = left.QuickLinks().Child(c => c.Current.Name == name).Child(c => c.Current.ControlType == ControlType.Button); return(button.ButtonInvokeCapture( actionDescription: () => "Waiting to capture window after QuickLink {0} on LeftPanel".FormatWith(name))); }
public static NormalWindowProxy <T> QuickLinkNavigate <T>(this LeftPanelProxy left) where T : Entity { return(left.QuickLinkCapture(QueryUtils.GetKey(typeof(T).FullName)).ToNormalWindow <T>()); }
public static SearchWindowProxy QuickLinkExplore(this LeftPanelProxy left, object queryName) { return(left.QuickLinkCapture(QueryUtils.GetKey(queryName)).ToSearchWindow()); }
public static AutomationElement QuickLinks(this LeftPanelProxy left) { return(left.Element.Child(c => c.Current.ClassName == "LinksWidget").ChildById("expQuickLinks").Child(c => c.Current.ControlType == ControlType.Pane)); }
public static AutomationElement Button(this LeftPanelProxy left, string name) { return(left.Element.Descendant(el => el.Current.ControlType == ControlType.Button && el.Current.Name == name)); }