Esempio n. 1
0
        public static void ViPrEmergencyClose()
        {
            var allItem = Desktop.Instance.Windows();

            foreach (var element in allItem)
            {
                if (element.Name.Contains("ViPr - ["))
                {
                    Console.WriteLine("Click on Close button of ViPr");
                    White.Core.UIItems.Button CloseButton = element.Get <White.Core.UIItems.Button>(SearchCriteria.ByText("Close"));
                    CloseButton.Click();
                }
            }

            Thread.Sleep(45000);
            ViPrClass.CheckViPrLogoffError();
        }
Esempio n. 2
0
        public void DoExitVipr()
        {
            Console.WriteLine("Enter in DoExitVipr)");
            var allItem = Desktop.Instance.Windows();

            foreach (var element in allItem)
            {
                if (element.Name.Contains("ViPr - ["))
                {
                    Console.WriteLine("Click on Exit button of ViPr - called from DoExitViPr)");
                    MenuBar menuBar = element.Get <MenuBar>(SearchCriteria.ByText("Application"));
                    Thread.Sleep(1000);
                    menuBar.MenuItem("Exit").Click();
                }
            }

            Thread.Sleep(45000);
            ViPrClass.CheckViPrLogoffError();
        }