/// <summary>
        /// Opens the solution detail.
        /// </summary>
        /// <param name="name">The name.</param>
        public void OpenSolutionDetail(string name)
        {
            IControl detail = BendSolutionList.Find <IControl>(Search.ByUid("Part.Detail.BendSolutions.List." + name), 2);

            if (detail.VisibleOnScreen)
            {
                detail.Click();
            }
        }
        /// <summary>
        /// Check for Toollist in Design dropdown
        /// </summary>
        /// <param name="toolListName">name of the toollist</param>
        /// <param name="control">tool list control</param>
        /// <returns>true if the tool list was found</returns>
        private bool CheckToolListDropdown(string toolListName, out IControl control)
        {
            control = null;
            var menu = HomeZone.GotoMainMenu();

            menu.RefreshMasterData();
            bool found = false;

            IControl toggleStateButton = Driver.Find <IProcess>(new ProcessPattern()
            {
                ProcessName = "Trumpf.TruTops.Control.Shell"
            }).Find <IControl>(new WPFPattern()
            {
                ClrFullClassName = "Trumpf.TruTops.Control.Shell.Views.TcShellView"
            }, 2).Find <IControl>(new WPFPattern()
            {
                WPFControlName = "MainTabControl"
            }, 12).Find <IControl>(new WPFPattern()
            {
                WPFControlName = "LayoutWorkArea"
            }, 18).Find <IControl>(new WPFPattern()
            {
                ClrFullClassName    = "DevExpress.Xpf.LayoutControl.LayoutItem",
                WPFControlOrdinalNo = 3
            }, 2).Find <IControl>(new WPFPattern()
            {
                WPFControlName = "PART_Item"
            }, 4);

            toggleStateButton.Click();

            IProcess homeZone = Driver.Find <IProcess>(new ProcessPattern()
            {
                ProcessName = "Trumpf.TruTops.Control.Shell"
            });

            homeZone.TryFind <IControl>(new WPFPattern {
                ClrFullClassName = "System.Windows.Controls.Primitives.PopupRoot"
            }, 2, out var dropDown);
            found = dropDown.TryFind <IControl>(new WPFPattern()
            {
                ClrFullClassName = "System.Windows.Controls.TextBlock",
                WPFControlText   = toolListName
            }, 12, out control);

            // DropDown has to be closed. Otherwise the first following Click Event will close the window instead of executing
            // the desired click event.

            Driver.Desktop.Keys("[Enter]");   //Close Dropdown.

            return(found);
        }
Beispiel #3
0
 public void Click()
 {
     Control.Click();
 }
Beispiel #4
0
 public void Click()
 {
     //Control.ExecuteJavaScript(myControlAccess.Browser, "arguments[0].hidden = false");
     Control.Click();
 }