title: How to disable flash plugin in Chrome and IE using Selenium/Java
body: <p>Used the following code for Chrome...But the flash is not disabled for Chrome..
  Even I require the code for IE as well</p>
  
  <pre><code>ChromeOptions options = new ChromeOptions();
  Map&lt;String, Object&gt; prefs = new HashMap&lt;String, Object&gt;();
  prefs.put("profile.default_content_settings.state.flash",0);
  //profile.default_content_settings.popups
  options.setExperimentalOption("prefs", prefs);  
  System.setProperty("webdriver.chrome.driver",System.getProperty("user.dir")+"\\chromedriver.exe");
  driver = new ChromeDriver(options);
  </code></pre>