I'm getting the below message when my Selenium test is trying to download an xml file. I'm using Java 11 and utilize the webdrivermanager.
I have seen many questions on this over the years, but nothing that appears to work consistently. I have tried
prefs.put("safebrowsing.enabled", true);
as well as
options.addArguments("--safebrowsing-disable-download-protection");
options.addArguments("--safebrowsing-disable-extension-blacklist");
None of them work though. Has anyone come up with a way to turn off the download bar when using ChromeDriver?