Skip to content

Commit

Permalink
Fix chrome preference settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jtankw3 committed Nov 8, 2020
1 parent 1e1ca94 commit 4eee4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/e2e/java/teammates/e2e/pageobjects/Browser.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4eee4e3

Please sign in to comment.