Chrome Driverの標準ダウンロードパス変更

global driver

options = Options()

prefs = {
“download.default_directory”: r”C:\Temp”,
“download.prompt_for_download”: False,
“download.directory_upgrade”: True,}
options.add_experimental_option(‘prefs’, prefs)

driver = webdriver.Chrome(options=options, executable_path=Param_Chrome_Driver)

driver.quit()