How to resolve below Exception

My code is :

package ieproject;
import org.openqa.selenium.ie.InternetExplorerDriver;

public class LaunchIEBrowser {
public static void main(String[] args)throws InterruptedException{
System.setProperty(“webdriver.ie.driver”, “C:/Chromedriver/IEDriverServer.exe”);
InternetExplorerDriver driver= new InternetExplorerDriver();
driver.get(“http://store.demoqa.com/”);
driver.manage().window().maximize();
System.out.println(“Website is opened successfully”);
Thread.sleep(10);
driver.quit();
}
}

Exception is :

Exception in thread “main” org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: ‘2.48.2’, revision: ’41bccdd’, time: ‘2015-10-09 19:55:52’
System info: host: ‘HireCraft-PC’, ip: ‘10.0.100.195’, os.name: ‘Windows 7’, os.arch: ‘x86’, os.version: ‘6.1’, java.version: ‘1.8.0_65’
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:641)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:670)
at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:516)
at ieproject.LaunchIEBrowser.main(LaunchIEBrowser.java:20)
Caused by: java.lang.RuntimeException: Process refused to die after 10 seconds, and couldn’t taskkill it: Unable to find executable for: taskkill
at org.openqa.selenium.os.ProcessUtils.killWinProcess(ProcessUtils.java:142)
at org.openqa.selenium.os.ProcessUtils.killProcess(ProcessUtils.java:81)
at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.destroyHarder(UnixProcess.java:247)
at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.access$2(UnixProcess.java:246)
at org.openqa.selenium.os.UnixProcess.destroy(UnixProcess.java:125)
at org.openqa.selenium.os.CommandLine.destroy(CommandLine.java:155)
at org.openqa.selenium.remote.service.DriverService.stop(DriverService.java:196)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:94)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:620)
… 3 more
Caused by: java.lang.NullPointerException: Unable to find executable for: taskkill
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:250)
at org.openqa.selenium.os.UnixProcess.<init>(UnixProcess.java:62)
at org.openqa.selenium.os.CommandLine.<init>(CommandLine.java:38)
at org.openqa.selenium.os.WindowsUtils.killPID(WindowsUtils.java:178)
at org.openqa.selenium.os.ProcessUtils.killWinProcess(ProcessUtils.java:138)
… 11 more

Train Asked on January 6, 2016 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Hey Praveen,

    Thanks for posting this question.
    Can you try this
    – Get the latest Webdriver jars and then try
    – Try the steps here https://code.google.com/p/selenium/wiki/InternetExplorerDriver#Required_Configuration

    Let us know if this solves the problem.

    Also do post these two additional information
    – What version of Windows are you on?
    – What is the IE browser version?

    Thanks
    Virender

    Professor Answered on January 6, 2016.
    Add Comment
  • Your Answer

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