RE: 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 Answers

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

Your Answer

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