title: How to ignore protected Mode Settings for Internet Explorer using setCapability() through Selenium and Java?
body: <p>I am trying to test in java selenium with IE but my problem is I have to keep on configuring the settings in protected Mode, is the an alternative to the deprecated
  function </p>
  
  <pre><code>WebDriver driver = new InternetExplorerDriver(cap);
  </code></pre>
  
  <p>As I would like to have this automated without human interaction. I am using this code in eclipse and it has no effect at all in my code the above is stroked out with a yellow line highlighter and that says it has been deprecated. So is there a new function to achieve this here is the code I have been using just for sanity check</p>
  
  <pre><code>DesiredCapabilities cap = DesiredCapabilities.internetExplorer();
  cap.setCapability("nativeEvents", false);
  cap.setCapability("unexpectedAlertBehaviour", "accept");
  cap.setCapability("ignoreProtectedModeSettings", true);
  cap.setCapability("disable-popup-blocking", true);
  cap.setCapability("enablePersistentHover", true);
  cap.setCapability("ignoreZoomSetting", true);
  cap.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);
  </code></pre>