title: Python Selenium Firefox trouble with download directory
body: <p>I am trying to download a .csv file from a website X using Selenium Firefox, but it keeps saving it in the Download folder instead of the path I set. I would fancy some help here.</p>
  <p>The FirefoxProfile has a &quot;DeprecationWarning&quot;, therefore I am strictly using the Options() configuration. I tried using &quot;\&quot;, &quot;/&quot; and &quot;\\&quot;.</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.firefox.options import Options
  
  
  download_path = &quot;C:\a\very\nice\path&quot;
  options = Options()
  options.set_preference(&quot;browser.download.folderList&quot;, '2')
  options.set_preference(&quot;browser.download.manager.showWhenStarting&quot;, False)
  options.set_preference(&quot;browser.download.dir&quot;, download_path)
  options.set_preference(&quot;browser.helperApps.neverAsk.saveToDisk&quot;, &quot;text/csv&quot;)
  
  browser = webdriver.Firefox(executable_path=path_gecko,
                              options=options) 
  
  </code></pre>