public static void SignOut(AutomationRunner testRunner) { testRunner.ClickByName("User Options Menu", 2); testRunner.ClickByName("Sign Out Menu Item", 2); testRunner.Wait(.5); // Rather than waiting a fixed amount of time, we wait for the ReloadAll to complete before returning testRunner.WaitForReloadAll(() => testRunner.ClickByName("Yes Button")); }
public static void DeleteSelectedPrinter(AutomationRunner testRunner) { // delete printer testRunner.ClickByName("Edit Printer Button", 5); testRunner.Wait(.5); testRunner.ClickByName("Delete Printer Button", 5); testRunner.Wait(.5); testRunner.WaitForReloadAll(() => testRunner.ClickByName("Yes Button", 5)); }