diff --git a/src/Samples.UITest/UITest.Core/UITestHelper.cs b/src/Samples.UITest/UITest.Core/UITestHelper.cs index c0e06383..c3125203 100644 --- a/src/Samples.UITest/UITest.Core/UITestHelper.cs +++ b/src/Samples.UITest/UITest.Core/UITestHelper.cs @@ -51,7 +51,7 @@ public static Menu ShowContextMenu(this AutomationElement element) public static Window FirstModalWindow(this Window window, TimeSpan? timeout = null) { - var result = Retry.WhileEmpty(() => window.ModalWindows, timeout); + var result = Retry.WhileEmpty(() => window.ModalWindows, timeout ?? Retry.DefaultTimeout * 2); return result?.Result?.FirstOrDefault() ?? throw new ElementNotFoundException($"First modal dialog was not found for window '{window.TryAutomationId()}'"); }