From a520d506d6cac8fcf0e9a2e9dea903b0b67ea441 Mon Sep 17 00:00:00 2001 From: helkv Date: Mon, 23 Mar 2020 16:33:09 +0100 Subject: [PATCH] #3 Add wait to HomePage.createNewLibrary() --- src/main/java/ui/pages/HomePage.java | 2 ++ 1 file changed, 2 insertions(+) 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; }