diff --git a/src/common/UITestAutomation/Session.cs b/src/common/UITestAutomation/Session.cs index 2ae47ad7a0..497394a5a7 100644 --- a/src/common/UITestAutomation/Session.cs +++ b/src/common/UITestAutomation/Session.cs @@ -526,6 +526,7 @@ namespace Microsoft.PowerToys.UITest Assert.IsNotNull(this.Root, $"Failed to attach to the window '{windowName}'. Root driver is null"); } + Thread.Sleep(3); return this; } diff --git a/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs b/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs index dca6ff9404..1c8786aa02 100644 --- a/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs +++ b/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs @@ -337,6 +337,7 @@ namespace UITests_FancyZones Session.KillAllProcessesByName("explorer"); Session.StartExe("explorer.exe", "C:\\"); + Thread.Sleep(3); Session.Attach(WindowName, WindowSize.UnSpecified); var tabView = Find(By.AccessibilityId("TabView")); tabView.DoubleClick(); // maximize the window