title: How to Set capability for IE browser to run in Headless mode
body: <p>I want to run the scripts in Headless mode for all the 3 browsers Chrome, Firefox &amp; IE</p>
  
  <p>The following is the code for Chrome:</p>
  
  <pre><code>   System.setProperty("webdriver.chrome.driver", "./drive/chromedriver.exe");
  
      ChromeOptions options = new ChromeOptions();
  
      options.addArguments("headless");
  
      options.addArguments("window-size=1400,600");
  
      WebDriver driver = new ChromeDriver(options);
  
      driver.get("http://www.google.com/");
  </code></pre>
  
  <p>Note : Its working fine</p>
  
  <p>Firefox:</p>
  
  <pre><code>    FirefoxBinary firefoxBinary = new FirefoxBinary();
  
      firefoxBinary.addCommandLineOptions("--headless");
  
      System.setProperty("webdriver.gecko.driver", "./drive/geckodriver.exe");
  
      FirefoxOptions firefoxOptions = new FirefoxOptions();
  
      firefoxOptions.setBinary(firefoxBinary);
  
      FirefoxDriver driver = new FirefoxDriver(firefoxOptions);
  
       driver.get("http://www.google.com/");
  </code></pre>
  
  <p>Note : Its working fine</p>
  
  <p>IE:</p>
  
  <p>Similarly i want to execute in IE with options</p>