Created
August 20, 2020 10:49
-
-
Save angelovstanton/cce09f3571295005e5f13f0700ef2344 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String downloadFilepath = "c:\\temp"; | |
HashMap<String, Object> chromePrefs = new HashMap<>(); | |
chromePrefs.put("profile.default_content_settings.popups", 0); | |
chromePrefs.put("download.default_directory", downloadFilepath); | |
chromeOptions.setExperimentalOption("prefs", chromePrefs); | |
chromeOptions.addArguments("--test-type"); | |
chromeOptions.addArguments("start-maximized", "disable-popup-blocking"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment