Unable to create chrome driver from ChromeDriverService
I referred this : http://selenium.googlecode.com/git/docs/api/java/index.html
and used the latest 2.35 maven dependency - which made me think that the
above is outdated since the classnames have changed.
But anyways the following code is used to create driver, but I'm getting
null for driver
service = new ChromeDriverService.Builder()
.usingDriverExecutable(new File("d:/chromedriver.exe"))
.usingAnyFreePort()
.build();
driver = new RemoteWebDriver(service.getUrl(),
DesiredCapabilities.chrome());
Any idea what can be wrong. The location of chromdriver.exe is correct and
I've downloaded the latest version of chromedriver for 27-30 (my chrome
version is 29)
No comments:
Post a Comment