title: Need the chrome equivalent of these (Firefox) browser profile settings in Selenium Java
body: <p>I have been playing around with Selenium Java WebDriver using chrome browser and have a fair amount of success so far. I have been able to start chrome window and send and receive data just fine. I now need to figure out the chrome equivalent of the following profile settings for Firefox browser.</p>
  
  <pre><code>FirefoxProfile profile = new FirefoxProfile();
  profile.setPreference("browser.download.folderList", 2);
  profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "image/jpg");
  profile.setPreference("browser.download.dir", "path/to/downloads/pics/folder");
  </code></pre>
  
  <p>Planning on doing something like this (ref: <a href="https://sites.google.com/a/chromium.org/chromedriver/capabilities" rel="nofollow">https://sites.google.com/a/chromium.org/chromedriver/capabilities</a>) but need set the other properties as above.</p>
  
  <pre><code>ChromeOptions chromeOptions = new ChromeOptions();
  //set the rest of the preferences for chrome as shown above for Firefox
  </code></pre>
  
  <ul>
  <li>Selenium: 2.47.1 </li>
  <li>Mac: OsX Yosemite </li>
  <li>ChromeDriver: 2.18 </li>
  <li>JDK: 1.8x</li>
  </ul>
  
  <p>Thanks.</p>