title: How to disable Javascript when using Selenium by JAVA?
body: <p>I'm using selenium for web test by JAVA.
  I want to stop JavaScript on Firefox Browser,Google Chrome Browser,IE Browser.</p>
  
  <p>I tried this code on Firefox Browser.</p>
  
  <pre><code>FirefoxProfile profile = new FirefoxProfile();
  profile.setPreference("javascript.enabled", false);
  WebDriver driver = new FirefoxDriver(profile);
  </code></pre>
  
  <p>But it's return this error on second line.</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalArgumentException: Preference javascript.enabled may not be overridden: frozen value=true, requested value=false
  </code></pre>
  
  <p>How to disable Javascript when using Selenium each Browser?
  If you know about this problem,Please help me!</p>