I am trying to open ie11 using selnium web driver and java.
My code looks like this
public static void main(String[] args) {
System.setProperty("webdriver.ie.driver",
"C:\\Users\\ankit.pande\\Downloads\\IEDriverServer_x64_3.14.0\\IEDriverServer.exe");
InternetExplorerOptions options = new InternetExplorerOptions();
options.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
WebDriver webDriver = new InternetExplorerDriver(options);
webDriver.manage().window().maximize();
String url = "https://www.toolsqa.com/automation-practice-form/";
webDriver.navigate().to(url);
webDriver.close();
}
I have changed the registry settings and Enabled protected mode(for all options)..Still I am getting
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070005 ('Access is denied.') for URL 'http://localhost:15641/'
error