title: Cannot load custom profile python - selenium
body: <pre><code>fp = webdriver.FirefoxProfile()
  fp.set_preference("browser.download.folderList", 2);
  fp.set_preference("browser.download.manager.showWhenStarting", False);
  fp.set_preference("browser.download.dir", self.download_dir);
  fp.set_preference("browser.helperApps.neverAsk.saveToDisk", "text/csv");
  self.browser = webdriver.Remote("http://192.168.1.242:4444/wd/hub", 
                                       desired_capabilities=webdriver.DesiredCapabilities.FIREFOX,
                                      browser_profile=fp
                                      )
  </code></pre>
  
  <p>the above code does not respect the profile specified.</p>
  
  <p><strong>BUT</strong> the code below <strong>works</strong> as expected:</p>
  
  <pre><code>fp = webdriver.FirefoxProfile()
      fp.set_preference("browser.download.folderList", 2);
      fp.set_preference("browser.download.manager.showWhenStarting", False);
      fp.set_preference("browser.download.dir", self.download_dir);
      fp.set_preference("browser.helperApps.neverAsk.saveToDisk", "text/csv");
      self.browser = webdriver.Firefox(fp)
  </code></pre>
  
  <p>In the seleniums documentation page <a href="http://seleniumhq.org/docs/04_webdriver_advanced.html#remotewebdriver" rel="nofollow">http://seleniumhq.org/docs/04_webdriver_advanced.html#remotewebdriver</a>
  has the following example:</p>
  
  <pre><code>from selenium import webdriver
  fp = webdriver.FirefoxProfile()
  # set something on the profile...
  driver = webdriver.Remote(desired_capabilities=webdriver.DesiredCapabilities.FIREFOX,    browser_profile=fp)
  </code></pre>
  
  <p>which is the same as the code in my example.
  Also when i start the selenium server with -firefoxProfileTemplate it seems to ignore the profile's settings</p>
  
  <pre><code>java -jar ./selenium-server-standalone-2.25.0.jar -firefoxProfileTemplate  /home/xubuntu/.mozilla/firefox/fdui6lsj.crawler/
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I also want to mention that if I load the profile from the file:</p>
  
  <pre><code>fp = webdriver.FirefoxProfile('/home/xubuntu/.mozilla/firefox/fdui6lsj.crawler/')
  
  self.browser = webdriver.Remote("http://192.168.1.242:4444/wd/hub", 
                                   desired_capabilities=webdriver.DesiredCapabilities.FIREFOX,
                                  browser_profile=fp
                                  )
  </code></pre>
  
  <p>the profile is loaded but it takes a lot of time.</p>
  
  <p>Can someone tell me what is wrong?</p>