Пример #1
0
        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)));
        }
Пример #2
0
 public static NormalWindowProxy <T> QuickLinkNavigate <T>(this LeftPanelProxy left) where T : Entity
 {
     return(left.QuickLinkCapture(QueryUtils.GetKey(typeof(T).FullName)).ToNormalWindow <T>());
 }
Пример #3
0
 public static SearchWindowProxy QuickLinkExplore(this LeftPanelProxy left, object queryName)
 {
     return(left.QuickLinkCapture(QueryUtils.GetKey(queryName)).ToSearchWindow());
 }
Пример #4
0
 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));
 }
Пример #5
0
 public static AutomationElement Button(this LeftPanelProxy left, string name)
 {
     return(left.Element.Descendant(el => el.Current.ControlType == ControlType.Button && el.Current.Name == name));
 }