title: Python Selenium Firefox Custom Profiles Save
body: <p>I just started learning selenium with python</p>
  
  <pre class="lang-py prettyprint-override"><code>
  from selenium import webdriver
  
  MY_PROFILE = "D:\\FIREFOX_PROFILE"
  
  FFP = webdriver.FirefoxProfile(MY_PROFILE)
  
  print(FFP.profile_dir)
  # OUTPUT: C:\Users\ABC\AppData\Local\Temp\****\***
  # But it should be OUTPUT: D:\FIREFOX_PROFILE
  
  DRIVER = webdriver.Firefox(firefox_profile = FFP)
  
  print(FFP.profile_dir)
  # OUTPUT: C:\Users\ABC\AppData\Local\Temp\****\***
  # But it should be OUTPUT: D:\FIREFOX_PROFILE
  
  </code></pre>
  
  <p>I want to save my profile somewhere so that I can use it later on.</p>
  
  <p>I also tried creating <code>RUN</code> -> <code>firefox.exe -p</code> and creating a new profile (I can't use the created profile). Nothing works.</p>
  
  <p>I am using:</p>
  
  <ul>
  <li>Selenium Version: 2.53.6</li>
  <li>Python Version: 3.4.4</li>
  <li>Firefox Version: Various(49.0.2, 45, 38 etc)</li>
  </ul>
  
  <p>I searched in Google but I can't solve it. Is there any way to save the profile?</p>