In my project I am getting the below alert in IE after navigating to the Location tab.
Now I would like to accept the same and for that I had added the below capabilities but it is not working.
System.setProperty("webdriver.ie.driver",properties.getProperty("InternetExplorerDriverPath"));
DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();
ieCapabilities.setCapability("nativeEvents", true);
ieCapabilities.setCapability("window.confirm", true);
ieCapabilities.setCapability("unexpectedAlertBehaviour", "accept");
ieCapabilities.setCapability("disable-popup-blocking", true);
ieCapabilities.setCapability("enablePersistentHover", true);
driver = new InternetExplorerDriver(ieCapabilities);
Please help.