Bug 4339: Ensures that we wait for dialogs to close when clicking ok

This commit is contained in:
Steffen Schaefer committed 2018-07-23 15:03:14 +02:00
1 parent f00a4325ef
commit c1e80ee40f
1 file changed
+3
@@ -75,6 +75,9 @@ public abstract class DataEntryDialogPO extends PageArea {
// Wait, since we do a callback usually
waitForAjaxRequests();
}
// This waits until the dialog is physically closed to make sure further don't fail because the dialog still covers other elements
new WebDriverWait(driver, 20).until(driver -> !((WebElement)context).isDisplayed());
}
public void pressCancel() {