I am having the same issue, but sometimes the download is done correctly, so my scenarios are flaky.
I've also tried using the following prefs:
prefs = {
"plugins.always_open_pdf_externally": True,
"download.default_directory": DOWNLOAD_PATH,
"profile.default_content_settings.popups": 0,
"download.prompt_for_download": False,
"directory_upgrade": False,
"download.extensions_to_open": "application/xml",
"safebrowsing.enabled": True,
}
chrome_options.add_experimental_option("prefs", prefs)
Does anyone have a solution yet?