Skip to content

Commit

Permalink
#3 Add wait to HomePage.createNewLibrary()
Browse files Browse the repository at this point in the history
  • Loading branch information
helkv committed Mar 23, 2020
1 parent 76a6391 commit a520d50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/ui/pages/HomePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a520d50

Please sign in to comment.