Replaced sleep with WebDriverAwait in AppHelper Login

This commit is contained in:
2025-11-10 01:17:05 +01:00
parent f2e759d17c
commit 9d92343b91

View File

@@ -69,7 +69,7 @@ public static class AppHelper
password.SendKeys("Test1234.");
IWebElement submit = driver.FindElement(By.CssSelector("button[type=\"submit\"]"));
submit.Click();
Thread.Sleep(250);
Timeout(driver).Until(ExpectedConditions.UrlContains("/Home/Index"));
}
public static bool TryRetryFindSuccessToast(ChromeDriver driver)