Upgraded Selenium to 2.50.1 with Conductor Framework & ChromeDriver is throwing an exception

295 Views Asked by At

I upgraded the selenium_version in the Conductor Framework pom.xml to: 2.50.1

I needed to update Selenium to make use of the FileDetector for remote uploads, e.g:

((RemoteWebDriver) driver).setFileDetector(new LocalFileDetector());

The change works perfectly with PhantomJS locally, and my Hub; but when I try to run ChromeDriver locally, I'm getting the following exception:

java.lang.NoClassDefFoundError: org/openqa/selenium/remote/service/DriverService$Builder
1

There are 1 best solutions below

1
ddavison On BEST ANSWER

Looks like the conductor framework was missing some dependencies.. primarily, the selenium-remote-driver dependency.

That dependency (as well as others) was added and a new 2.2.2 version was published.

Update your Pom file to have:

<dependency>
    <groupId>io.ddavison</groupId>
    <artifactId>conductor</artifactId>
    <version>2.2.2</version>
</dependency>

and you should be good to go!