1

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

Ankit Pande
  • 7
  • 1
  • 5
  • The links were not of any help. I have done the registry setting and enabled protected mode for all options. I tried the desired capabilities, but it is showing the same error as stated above. – Ankit Pande Apr 02 '19 at 12:18
  • Are you logged in OS as 'ankit.pande'? – pburgr Apr 03 '19 at 11:06
  • Yes I am logged in as ankit.pande. I am even using a compatible web driver. Please help me out I ca provide screen shots too. – Ankit Pande Apr 05 '19 at 06:30
  • Check access rights on folder Downloads, maybe set full control for everyone. It's Windows issue I guess. – pburgr Apr 05 '19 at 06:37

0 Answers0