public static void RemoveAllFromQueue(this AutomationRunner testRunner) { testRunner.ClickByName("Queue... Menu", 2); testRunner.Wait(1); testRunner.ClickByName(" Remove All Menu Item", 2); }
public static Process LaunchAndConnectToPrinterEmulator(this AutomationRunner testRunner, string make = "Airwolf 3D", string model = "HD", bool runSlow = false) { // Load the TestEnv config var config = TestAutomationConfig.Load(); // Create the printer MatterControlUtilities.AddAndSelectPrinter(testRunner, make, model); var process = new PrintEmulatorProcess(); process.StartInfo = new ProcessStartInfo() { FileName = "python", Arguments = string.Format("{0} {1}{2}", StaticData.Instance.MapPath("../PrinterEmulator.py"), config.Printer, runSlow ? " slow" : ""), WindowStyle = ProcessWindowStyle.Minimized }; process.Start(); // edit the com port testRunner.ClickByName("Edit Printer Button", 3); testRunner.ClickByName("Serial Port Dropdown", 3); testRunner.ClickByName(config.MCPort + " Menu Item", 1); testRunner.ClickByName("Cancel Wizard Button"); // connect to the created printer testRunner.ClickByName("Connect to printer button", 2); testRunner.WaitForName("Disconnect from printer button", 5); return process; }
public static void NavigateToFolder(this AutomationRunner testRunner, string libraryRowItemName) { SearchRegion libraryRowItemRegion = testRunner.GetRegionByName(libraryRowItemName, 3); testRunner.ClickByName(libraryRowItemName); //testRunner.MoveToByName(libraryRowItemName); //testRunner.Wait(.5); testRunner.ClickByName("Open Collection", searchRegion: libraryRowItemRegion); //testRunner.Wait(.5); }
public static void CloseSignInAndPrinterSelect(this AutomationRunner testRunner, PrepAction preAction = PrepAction.CloseSignInAndPrinterSelect) { // Non-MCCentral builds won't have the plugin. Reduce the wait time for these cases if (testRunner.WaitForName("Connection Wizard Skip Sign In Button", 0.5)) { testRunner.ClickByName("Connection Wizard Skip Sign In Button"); } if (testRunner.WaitForName("Cancel Wizard Button", 1)) { testRunner.ClickByName("Cancel Wizard Button"); } }