public void SetUp() { app = Application.Launch(designer_executable); Assert.IsNotNull(app); mainWindow = app.GetWindow("Designer"); Assert.IsNotNull(mainWindow); }
public void TearDown() { mainWindow.Close(); //Check that there is Save dialog Core.UIItems.WindowItems.Window saveDlg = Helpers.FindTopWindow(app, "SaveDocumentsDialog"); if (saveDlg != null) { Button saveDlgNoBtn = saveDlg.Get <Button>(SearchCriteria.ByAutomationId("noButton")); Assert.IsNotNull(saveDlgNoBtn); saveDlgNoBtn.Click(); } Assert.IsTrue(mainWindow.IsClosed); Assert.IsTrue(app.HasExited); }
public Dashboard(Core.UIItems.WindowItems.Window window, Repository.ScreenRepository screenRepository) : base(window, screenRepository) { }
public SearchCustomerScreen(Core.UIItems.WindowItems.Window window, Repository.ScreenRepository screenRepository) : base(window, screenRepository) { }
public SearchMoviesScreen(Core.UIItems.WindowItems.Window window, Repository.ScreenRepository screenRepository) : base(window, screenRepository) { }