options.add_experimental_option("prefs", {
"download.default_directory": download_dir + "tmp/download", ★
"profile.default_content_setting_values.automatic_downloads": 1,
"download.prompt_for_download": False,
"download.directory_upgrade": True,
"plugins.plugins_disabled": ["Chrome PDF Viewer"],
"plugins.always_open_pdf_externally": True
})
options.add_argument("--disable-extensions")
options.add_argument("--disable-print-preview")
self.driver = webdriver.Chrome(options=options)