Trying to launch IE with some application URL.
Error:
Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.ie.driver
Solution:
I downloaded IEDriverServer.exe, from "http://code.google.com/p/selenium/wiki/InternetExplorerDriver" and used bellow code the problem got resolved.. :).
WebDriver driver;// = new InternetExplorerDriver();
File file = new File("C:\\Dev\\selenium-java-2.28.0\\IEDriverServer.exe");
System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
driver = new InternetExplorerDriver();
driver.get("http://192.168.0.35:8000");
Error:
Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.ie.driver
Solution:
I downloaded IEDriverServer.exe, from "http://code.google.com/p/selenium/wiki/InternetExplorerDriver" and used bellow code the problem got resolved.. :).
WebDriver driver;// = new InternetExplorerDriver();
File file = new File("C:\\Dev\\selenium-java-2.28.0\\IEDriverServer.exe");
System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
driver = new InternetExplorerDriver();
driver.get("http://192.168.0.35:8000");
Comments
Post a Comment