From 4eee4e3f982a8c50148e90e94b0bb805dc3a1466 Mon Sep 17 00:00:00 2001
From: jtankw3 <j.tankw3@gmail.com>
Date: Mon, 9 Nov 2020 02:20:33 +0800
Subject: [PATCH] Fix chrome preference settings

---
 src/e2e/java/teammates/e2e/pageobjects/Browser.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/e2e/java/teammates/e2e/pageobjects/Browser.java b/src/e2e/java/teammates/e2e/pageobjects/Browser.java
index d3ef0713d12..f52f2026ba1 100644
--- a/src/e2e/java/teammates/e2e/pageobjects/Browser.java
+++ b/src/e2e/java/teammates/e2e/pageobjects/Browser.java
@@ -177,7 +177,7 @@ private WebDriver createWebDriver() {
 
             Map<String, Object> chromePrefs = new HashMap<>();
             chromePrefs.put("download.default_directory", downloadPath);
-            chromePrefs.put("profile.default_content_settings.popups", 0);
+            chromePrefs.put("download.prompt_for_download", false);
             ChromeOptions options = new ChromeOptions();
             options.setExperimentalOption("prefs", chromePrefs);
             options.addArguments("--allow-file-access-from-files");