public void CloseAllTabs() { try { StudioWindow.SetFocus(); // first try closing wizards ;) for (var i = 0; i < 5; i++) { Playback.Wait(150); SendKeys.SendWait("{ESC}"); } // fetch the darn thing once ;) var tabManager = GetManager(); if (tabManager != null) { var tabs = tabManager.GetChildren(); for (int index = tabs.Count - 1; index >= 0; index--) { var tab = tabs[index]; CloseTab_Click_No(tab); } } } // ReSharper disable EmptyGeneralCatchClause catch // ReSharper restore EmptyGeneralCatchClause { // just do it ;) } }
public void NewWorkflowShortcutKeyExpectedWorkflowOpens() { var preCount = TabManagerUIMap.GetTabCount(); StudioWindow.SetFocus(); Keyboard.SendKeys(StudioWindow, "{CTRL}W"); string activeTabName = TabManagerUIMap.GetActiveTabName(); var postCount = TabManagerUIMap.GetTabCount(); Assert.IsTrue(postCount == preCount + 1, "Tab quantity has not been increased"); Assert.IsTrue(activeTabName.Contains("Unsaved"), "Active workflow is not an unsaved workflow"); }
public void NewWebServiceShortcutKeyExpectedWebServiceOpens() { StudioWindow.WaitForControlReady(1000); Keyboard.SendKeys(StudioWindow, "{CTRL}{SHIFT}W"); if (!WizardsUIMap.TryWaitForWizard()) { Assert.Fail("New web service shortcut key doesnt work"); } StudioWindow.SetFocus(); WebServiceWizardUIMap.Cancel(); }
public void ClickNewPluginServiceExpectedPluginServiceOpens() { RibbonUIMap.ClickNewPlugin(); UITestControl uiTestControl = PluginServiceWizardUIMap.GetWizardWindow(); if (uiTestControl == null) { Assert.Fail("Error - Clicking the new plugin service button does not create the new plugin service window"); } StudioWindow.SetFocus(); PluginServiceWizardUIMap.ClickCancel(); }
public void SchedulerShortcutKeyPress() { StudioWindow.SetFocus(); KeyboardCommands.SendKey("{ALT}S", 2000); }
public void DebugShortcutKeyPress() { StudioWindow.SetFocus(); SendKeys.SendWait("{F6}"); }
public void ClickManageSecuritySettings() { StudioWindow.SetFocus(); ClickRibbonMenuItem("UI_RibbonHomeManageSecuritySettingsBtn_AutoID"); StudioWindow.WaitForControlReady(); }