From 7e944f1afb8276abf822fdc70a17ff96ee50c125 Mon Sep 17 00:00:00 2001 From: Max Ewing Date: Mon, 14 Dec 2020 17:57:28 +0700 Subject: [PATCH] fix: SelectForm doesn't wait for form events --- Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs b/Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs index 14f82a14..75c95824 100644 --- a/Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs +++ b/Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs @@ -4163,11 +4163,8 @@ internal BrowserCommandResult SelectForm(string formName) driver.ClickWhenAvailable(By.Id(form.GetAttribute("id"))); driver.WaitForPageToLoad(); + driver.WaitForTransaction(); - driver.WaitUntilClickable(By.XPath(Elements.Xpath[Reference.Entity.Form]), - TimeSpan.FromSeconds(30), - "CRM Record is Unavailable or not finished loading. Timeout Exceeded" - ); return true; }); }