title: How to set Google chrome preference using Selenium web driver?
body: <p>I tried setting chrome pref usinf ChromeOption class using the following code snippet</p>
  
  <pre><code>Map&lt;String, String&gt; prefs = new Hashtable&lt;String, String&gt;();
  prefs.put("download.prompt_for_download", "true");
  DesiredCapabilities capabilities = DesiredCapabilities.chrome();
  capabilities.setCapability("prefs", prefs);
  //capabilities.setCapability("download.prompt_for_download", true);
  driver = new EventFiringWebDriver(new ChromeDriver(capabilities));
  </code></pre>
  
  <p>But no luck I am using latest driver version 2.35. I wanted to set prompt for download.</p>