Fixed typo

This commit is contained in:
2025-11-16 16:46:29 +01:00
parent 999e7495c0
commit 62897dde11

View File

@@ -18,9 +18,9 @@ public static class AssetsHelper
driver.FindElement(By.Id("createName")).SendKeys(AppHelper.GetRandomName());
AppHelper.AwaitVisible(driver, By.Id("createLocationSelect-ts-control"));
driver.FindElement(By.Id("createLocationSelect-ts-control")).Click();
Thread.Sleep(1); //AppHelper.Timeout(driver, 30).Until(ExpectedConditions.ElementExists(By.Id("createLocationSelect-opt-1")));
Thread.Sleep(1000); //AppHelper.Timeout(driver, 30).Until(ExpectedConditions.ElementExists(By.Id("createLocationSelect-opt-1")));
AppHelper.ScrollIntoViewAndClick(driver, driver.FindElement(By.Id("createLocationSelect-opt-1")));
driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-ts-control\").value=\"somewhere\"");
//driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-ts-control\").value=\"somewhere\"");
driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-opt-1\").click()");
driver.FindElement(By.Id("createUsersSelect-ts-control")).Click();
AppHelper.AwaitVisible(driver, By.Id("createUsersSelect-opt-1"));