diff --git a/tests/Berufsschule_HAM.E2ETests/Helper/UsersHelper.cs b/tests/Berufsschule_HAM.E2ETests/Helper/UsersHelper.cs index 5cc1ee5..46c4756 100644 --- a/tests/Berufsschule_HAM.E2ETests/Helper/UsersHelper.cs +++ b/tests/Berufsschule_HAM.E2ETests/Helper/UsersHelper.cs @@ -22,7 +22,7 @@ public static class UsersHelper driver.FindElement(By.Id("createWorkplace")).Click(); AppHelper.AwaitVisible(driver, By.Id("createWorkplace")); - AppHelper.Timeout(driver, 30).Until(ExpectedConditions.ElementIsVisible(By.CssSelector("#createWorkplace>*:eq(1)"))); + AppHelper.Timeout(driver, 30).Until(ExpectedConditions.ElementIsVisible(By.CssSelector("#createWorkplace > :nth-child(2)"))); driver.ExecuteJavaScript("document.getElementById(\"createWorkplace\").children[1].selected = true"); driver.FindElement(By.Id("createGroups")).FindElement(By.CssSelector("*")).Click();