I specified my webdriver as follows:
chrome_options = webdriver.ChromeOptions()
curr_path = os.getcwd()
prefs = {'download.default_directory': curr_path, 'download.prompt_for_download': False}
chrome_options.add_experimental_option('prefs', prefs)
driver = webdriver.Chrome(options=chrome_options)
I created a batch file to execute my python file and it works just fine when I manually execute the batch file. It downloads the file normally and drops it into the specified download path. However, when task scheduler executes the batch file, the download is halted by a prompt for a download path.
Is this some quirk of Windows Task Scheduler or is there a better way to go about this?