Esempio n. 1
0
        public static void ResizeWindowSmall()
        {
            PLogger.WriteCurrentStatistics("Before window resize small: ");

            Resize(MainWindow, 500, 300);

            PLogger.WriteCurrentStatistics("After window resize small: ");
        }
Esempio n. 2
0
        public static void ResizeWindowBig()
        {
            PLogger.WriteCurrentStatistics("Before window resize big: ");

            Resize(MainWindow, 1000, 600);

            PLogger.WriteCurrentStatistics("After window resize big: ");
        }
Esempio n. 3
0
        public static void MoveWindowUp()
        {
            PLogger.WriteCurrentStatistics("Before move window up: ");

            MouseMoveEmulationAndUp(TitleBar, -500, -100);

            PLogger.WriteCurrentStatistics("After move window up: ");
        }
Esempio n. 4
0
        public static void MoveWindowDown()
        {
            PLogger.WriteCurrentStatistics("Before move window down: ");

            MouseMoveEmulationAndUp(TitleBar, 450, 115);

            PLogger.WriteCurrentStatistics("After move window down: ");
        }
Esempio n. 5
0
        public static void RestoreFromTaskBar()
        {
            AppOnTaskBar.ClickButton();
            var windowPattern = MainWindow.GetCurrentPattern(WindowPattern.Pattern) as WindowPattern;

            if (windowPattern.Current.WindowVisualState.Equals(WindowVisualState.Minimized))
            {
                AppOnTaskBar.ClickButton();
            }
            PLogger.WriteCurrentStatistics("After restore from task bar: ");
        }
Esempio n. 6
0
        public static void ClickButton(this AutomationElement element)
        {
            PLogger.WriteCurrentStatistics("Before call button click: ");

            MouseOver(element);
            var invokePattern = element.GetCurrentPattern(InvokePattern.Pattern) as InvokePattern;

            invokePattern.Invoke();

            PLogger.WriteCurrentStatistics("After call button click: ");
        }
Esempio n. 7
0
 public static void MinimizeWindow()
 {
     MinimizeButton.ClickButton();
     PLogger.WriteCurrentStatistics("After window minimize: ");
 }