mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
set longer timeout
This commit is contained in:
@@ -41,12 +41,18 @@ namespace Microsoft.FancyZonesEditor.UnitTests.Utils
|
|||||||
|
|
||||||
Assert.IsNotNull(Session, "Session not initialized");
|
Assert.IsNotNull(Session, "Session not initialized");
|
||||||
|
|
||||||
// Set implicit timeout to 1.5 seconds to make element search to retry every 500 ms for at most three times
|
// Set implicit timeout to make element search to retry every 500 ms
|
||||||
Session.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(1.5);
|
Session.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(3);
|
||||||
|
|
||||||
// Find main editor window
|
// Find main editor window
|
||||||
MainEditorWindow = Session.FindElementByAccessibilityId("MainWindow1");
|
try
|
||||||
Assert.IsNotNull(MainEditorWindow, "Main editor window not found");
|
{
|
||||||
|
MainEditorWindow = Session.FindElementByAccessibilityId("MainWindow1");
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Assert.IsNotNull(MainEditorWindow, "Main editor window not found");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Close(TestContext testContext)
|
public void Close(TestContext testContext)
|
||||||
|
|||||||
Reference in New Issue
Block a user