public void OpenNetworkWindow() { Application = Application.Launch(@"C:\Users\Flotschi\git\handle\Handle.WPF\Handle.WPF\bin\Debug\Handle.WPF.exe"); Assert.IsNotNull(Application); MainWindow = Application.GetWindow("Handle"); Assert.IsNotNull(MainWindow); MainWindow.Focus(); Keyboard.LeaveAllKeys(); Keyboard.HoldKey(KeyboardInput.SpecialKeys.CONTROL); Keyboard.Enter("n"); NetworkWindow = MainWindow.ModalWindow("Networks"); Assert.IsNotNull(NetworkWindow); Keyboard.LeaveAllKeys(); NetworkWindow.Close(); Application.Kill(); }
public void Start() { Console.WriteLine(CoreAppXmlConfiguration.Instance.UIAutomationZeroWindowBugTimeout); Application = Application.Launch(@"C:\Users\Flotschi\git\handle\Handle.WPF\Handle.WPF\bin\Debug\Handle.WPF.exe"); Assert.IsNotNull(Application); MainWindow = Application.GetWindow("Handle"); Assert.IsNotNull(MainWindow); MainWindow.Focus(); }
public void Start() { Application = Application.Launch(@"C:\Users\Flotschi\git\handle\Handle.WPF\Handle.WPF\bin\Debug\Handle.WPF.exe"); Assert.IsNotNull(Application); MainWindow = Application.GetWindow("Handle"); Assert.IsNotNull(MainWindow); MainWindow.Focus(); }