Exemplo n.º 1
0
        internal void ShowXmlTree()
        {
            if (xmlTreeViewTab == null)
            {
                AutomationWrapper tabControl = this.window.FindDescendant("tabControlViews");
                xmlTreeViewTab = tabControl.FindDescendant("Tree View");
            }
            var bounds = xmlTreeViewTab.Bounds;

            Trace.WriteLine("Select XML tree view tab");
            Mouse.MouseClick(new Point(bounds.Left + (bounds.Right - bounds.Left) / 2, bounds.Top + 5), MouseButtons.Left);
            Sleep(100);
        }
Exemplo n.º 2
0
        public void ShowXslt()
        {
            if (xslOutputTab == null)
            {
                AutomationWrapper tabControl = this.window.FindDescendant("tabControlViews");
                xslOutputTab = tabControl.FindDescendant("XSL Output");
            }
            var bounds = xslOutputTab.Bounds;

            Trace.WriteLine("Select XSL output tab");
            Mouse.MouseClick(new Point(bounds.Left + (bounds.Right - bounds.Left) / 2, bounds.Top + 5), MouseButtons.Left);
            Sleep(1000);
        }