Getting Error while loading IE browser

When i try to perform the below script I’m getting error and IE browser is not getting loaded/getting Crashed.

Script:
package automationFramework;

import org.openqa.selenium.ie.InternetExplorerDriver;

public class LaunchingIE {

public static void main(String[] args) throws InterruptedException {
//Path to the folder where you have extracted the IEDriverServer executable
String service = “C:\\Users\\naresh.gande\\ServerIE\\IEDriverServer_x64_2.39.0\\IEDriverServer.exe”;
System.setProperty(“webdriver.ie.driver”, service);
InternetExplorerDriver driver = new InternetExplorerDriver();

driver.get(“http://yahoo.com”);

//Wait for 5 Sec
Thread.sleep(5);

// Close the driver
driver.quit();
}

}

Note: If i commented out Thread and quit commands script is running perfect but if add them back IE is crashing.

Thanks,
Naresh G

Add Comment
  • 2 Answer(s)

    Try with any other url, say google.com.  Before that try launching IE browser manually and accept all default option for the browser, if asked before loading the URL.

    Train Answered on May 3, 2016.
    Add Comment

    Try to do this it may help

    IE —> Internet Options –> Security Tab –> Check the Checkbox(enable protected mode)
    for all 4 options – “internet,local internet, restricted sites, trusted sites ”

    For me when i ran your code browser was not getting closed. So found this solution online.. Hope it works for you https://www.youtube.com/watch?v=sF6s_gDZpk0

    Default Answered on May 7, 2016.

    Thanks Much..!! Its working fine Now.

    on May 10, 2016.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.