title: ChromeDriver Disable Javascript in Java
body: <p><a href="https://code.google.com/p/selenium/issues/detail?id=3175" rel="nofollow">https://code.google.com/p/selenium/issues/detail?id=3175</a>
  Doesn't work.</p>
  
  <p>So then I tried this,</p>
  
  <pre><code>ChromeOptions opts = new ChromeOptions();
  opts.addArguments("--disable-javascript");
  driver = new ChromeDriver(opts);
  </code></pre>
  
  <p>But then driver.get(website); 
  javascript is enabled again. When it was on data; it was disabled. </p>
  
  <p>Also I tried,</p>
  
  <pre><code>DesiredCaptabilities caps = DesiredCaptabilties.chrome();
  caps.setJAvaScriptEnabled(fale);
  driver = new ChromeDriver(caps); 
  driver.get(Website); 
  </code></pre>
  
  <p>Nothing is working. Any advice?</p>