title: Disable css rendering in chrome driver using selenium, java
body: <p>I want to disable CSS in Selenium with Chrome driver. My code looks like this</p>
  
  <pre><code>System.setProperty("webdriver.chrome.driver", "Path to chrome driver");
  
  Map&lt;String, Object&gt; prefs = new HashMap&lt;String, Object&gt;();
  prefs.put("profile.managed_default_content_settings.images", 2);
  
  options.setExperimentalOption("prefs", prefs);
  
  ChromeDriver driver = new ChromeDriver(options);
  driver.get("https://www.sampleurl.com/);
  </code></pre>
  
  <p>I googled it. But I can't get the perfect solution to disable CSS.  </p>