Bug 4339: Defined a specific wait timeout for notifications that

automatically disappear after 10s. It's useless to wait 120s here.
This commit is contained in:
Steffen Schaefer committed 2018-07-30 10:28:34 +02:00
1 parent 1831804f0c
commit 1853ecf929
1 file changed
+2 -1
@@ -59,6 +59,7 @@ public class PageObject {
private static final Logger logger = Logger.getLogger(PageObject.class.getName());
public static final int DEFAULT_WAIT_TIMEOUT_SECONDS = 120;
public static final int DEFAULT_NOTIFICATION_TIMEOUT_SECONDS = 12;
public static final int DEFAULT_POLLING_INTERVAL = 1;
@@ -605,7 +606,7 @@ public class PageObject {
* Waits for an notification to appear and dismisses the notification by clicking on it. If no notification shows up, an Exception is thrown.
*/
protected void waitForNotificationAndDismiss() {
waitForNotificationAndDismiss(DEFAULT_WAIT_TIMEOUT_SECONDS);
waitForNotificationAndDismiss(DEFAULT_NOTIFICATION_TIMEOUT_SECONDS, null);
}
/**