title: Selenium ChromeDriver C# how to block video download and play
body: <p>I would like to know how to use Selenium and ChromeDriver, or possibly Chrome itself, to block video on a page from downloading and playing. It consumes bandwidth and time while I am testing other functionality. I do not have direct control of the video web elements. </p>
  
  <p>For example, here is a video that I would like to avoid playing:</p>
  
  <pre><code>&lt;video src="http://content.myvid.com/some_video.mp4" autoplay="" preload="auto" class=" __foo_content_video"&gt;&lt;/video&gt;
  </code></pre>
  
  <p>I am already using image blocker extension for Chrome. Which works great blocking static images from being downloaded and displayed. I wish that it did the same for videos but it doesn't.</p>
  
  <p>My testing setup is using the following versions:</p>
  
  <ul>
  <li>Selenium 3.0.1 </li>
  <li>ChromeDriver.2.29.0</li>
  <li>chrome32_58.0.3029.81</li>
  </ul>
  
  <p>I am hoping that this is solved with a simple <code>ChromeOptions</code> argument or capability.</p>