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.

package automationFramework;


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(“”, service);
InternetExplorerDriver driver = new InternetExplorerDriver();


//Wait for 5 Sec

// Close the driver


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

Naresh G

Add Comment
2 Answer(s)

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

selQAenthu 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

gauravkhurana 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.