title: Disabling flash in Chrome
body: <p>One of our internal applications has a flash object on a page. I need to test one of the corner cases when there is no flash plugin available/installed in the browser: <em>neither the internal (pepperflash), nor the system-wide adobe flash player plugin</em>.</p>
  
  <p>According to the <a href="http://peter.sh/experiments/chromium-command-line-switches/" rel="nofollow noreferrer">List of Chromium Command Line Switches</a> documentation page, there is a relevant command-line switch:</p>
  
  <blockquote>
    <p><code>--disable-bundled-ppapi-flash</code> - Disables the bundled PPAPI version of Flash.</p>
  </blockquote>
  
  <p>But, this would turn off only the pepperflash internal chrome plugin. </p>
  
  <p>According to the <a href="https://stackoverflow.com/questions/9636255/how-to-run-chrome-firefox-with-disabled-flash-plugin-from-watir-script">How to run Chrome/Firefox with disabled flash plugin from watir script?</a> thread, there is also <code>--disable-internal-flash</code> switch, but it is also relevant to the chrome's internal flash plugin.</p>
  
  <p><a href="http://www.browserstack.com/automate/python#enable-disable-flash" rel="nofollow noreferrer">Browserstack's documentation</a> suggests to follow the principle <em>"the guillotine is the best dandruff cure"</em> and to disable all plugins by using <code>--disable-plugins</code> switch:</p>
  
  <blockquote>
    <p>To disable Flash in Chrome, create a chromeOptions capability, and
    pass the --disable-plugins argument to the capability.</p>
  </blockquote>
  
  <p>Is there a way to disable all flash plugins without disabling all plugins in Chrome?</p>
  
  <hr>
  
  <p>For instance, would be perfect to have a preference to list all of the plugins that needs to be turned off:</p>
  
  <pre><code>plugins.disabled: ['Adobe Flash Player', 'pepperflash']
  </code></pre>