-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!I-defectSomething is not working as intendedSomething is not working as intendedI-questionApplied to questions. Issues should be closed and send the user to community resources.Applied to questions. Issues should be closed and send the user to community resources.
Description
What happened?
The following code still shows "Save as" pop up in incognito mode.
HashMap<String, Object> chromePrefs = new HashMap<>();
chromePrefs.put("download.default_directory", downloadDir);
chromePrefs.put("profile.default_content_settings.popups", 0);
chromePrefs.put("download.prompt_for_download", false);
chromePrefs.put("profile.default_content_setting_values.notifications", 2);
chromePrefs.put("profile.content_settings.exceptions.automatic_downloads.*.setting", 2);
chromePrefs.put("safebrowsing.disable_download_protection", true);
chromePrefs.put("profile.managed_default_content_settings.popups", 0);
chromePrefs.put("profile.default_content_setting_values.automatic_downloads", 1);
ChromeOptions options = New ChromeOptions();
options.addArguments("disable-features=DownloadBubble,DownloadBubbleV2");
options.addArguments("disable-features=DownloadUI");
options.addArguments("--safebrowsing-disable-download-protection");
options.setExperimentalOption("prefs" chromePrefs);
options.addArguments("--start-maximized");
options.addArguments("--disable-popup-blocking");
options.addArguments("--incognito");
options.addArguments("--disable-search-engine-choice-screen");
How can we reproduce the issue?
I am using Selenium 4.25.0 and Chrome 129.Relevant log output
Is there any Selenium or Chrome official documentation how to do this properly ? Because everyone in the internet is doing different things, none of them work.Operating System
windows 10
Selenium version
4.25.0
What are the browser(s) and version(s) where you see this issue?
Chrome 129
What are the browser driver(s) and version(s) where you see this issue?
chromedriver 129
Are you using Selenium Grid?
No response
Metadata
Metadata
Assignees
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!I-defectSomething is not working as intendedSomething is not working as intendedI-questionApplied to questions. Issues should be closed and send the user to community resources.Applied to questions. Issues should be closed and send the user to community resources.