public static void PrepForTestRun(AutomationRunner testRunner, PrepAction preAction = PrepAction.CloseSignInAndPrinterSelect) { switch (preAction) { case PrepAction.CloseSignInAndPrinterSelect: testRunner.ClickByName("Connection Wizard Skip Sign In Button", 5); testRunner.ClickByName("Cancel Wizard Button", 5); break; } }
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"); } }