diff --git a/src/main/java/ui/pages/HomePage.java b/src/main/java/ui/pages/HomePage.java index a362ec8..06de2c8 100644 --- a/src/main/java/ui/pages/HomePage.java +++ b/src/main/java/ui/pages/HomePage.java @@ -93,6 +93,8 @@ public HomePage createNewLibrary(String newLibraryName) { WebElement submit = newLibraryDialog.findElement(By.className("submit")); submit.click(); + wait.until(ExpectedConditions.stalenessOf(newLibraryDialog)); + return homePage; }