profile.set_preference('browser.download.folderList', 2)
profile.set_preference('browser.download.dir', 'c:\\firefox_downloads\\')
browser = webdriver.WebDriver(firefox_profile=profile)
How do I automatically download files from a pop up dialog using selenium-python