Changing default download directory DURING ACTIVE SESSION
Opened this issue · 0 comments
allwynjose commented
Hi, I was wondering how to change the default download directory (for Chrome) using Selenium + VBA DURING AN ACTIVE SESSION.
I tried:
DOWNLOAD_DIRECTORY = Range("E1") & "Documents"
MkDir (DOWNLOAD_DIRECTORY)
driver.SetPreference "download.default_directory", DOWNLOAD_DIRECTORY
driver.SetPreference "download.directory_upgrade", True
driver.SetPreference "download.prompt_for_download", False
It creates the Documents folder as intended, but fails to set the Default Directory to it.
Any help would be appreciated! Thanks!