/// <summary> /// Navigates to a new screen. /// </summary> /// <typeparam name="T">The type of screen to navigate to.</typeparam> /// <param name="title">The title of the screen.</param> /// <returns>The new screen.</returns> protected T NavigateTo <T>(string title) where T : Screen, new() { if (title == null) { throw new ArgumentNullException("title"); } UITestControl searchLimitContainer; switch (Application.TechnologyName) { case "MSAA": searchLimitContainer = new CUITWinWindow(); break; case "UIA": searchLimitContainer = new CUITWpfWindow(); break; default: throw new NotSupportedException(string.Format("Technology {0} is not supported.", Application.TechnologyName)); } searchLimitContainer.SearchProperties[UITestControl.PropertyNames.Name] = title; searchLimitContainer.WindowTitles.Add(title); return(new T { Application = Application, SearchLimitContainer = searchLimitContainer }); }
/// <summary> /// selectTaskBoard /// </summary> public void selectTaskBoard() { #region Variable Declarations Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinWindow uIAgileCockpitAppListGWindow1 = this.UIAgileCockpitAppListGWindow.UIAgileCockpitAppListGWindow1; #endregion // Click 'Agile Cockpit - App List - Google Chrome' window Mouse.Click(uIAgileCockpitAppListGWindow1, new Point(793, 403)); }
/// <summary> /// navigateAndSelectTeam /// </summary> public void navigateAndSelectTeam() { #region Variable Declarations Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinWindow uIAgileCockpitAppListGWindow1 = this.UIAgileCockpitAppListGWindow.UIAgileCockpitAppListGWindow1; #endregion // Click 'Agile Cockpit - App List - Google Chrome' window Mouse.Click(uIAgileCockpitAppListGWindow1, new Point(422, 111)); // Click 'Agile Cockpit - App List - Google Chrome' window Mouse.Click(uIAgileCockpitAppListGWindow1, new Point(445, 225)); }