org.openqa.selenium.remote.service.DriverService$Builder.createArgs()Lcom/google/common/collect/ImmutableList; with Selenium 3.5.3 Chrome 76

This error message…

java.lang.AbstractMethodError: org.openqa.selenium.remote.service.DriverService$Builder.createArgs()Lcom/google/common/collect/ImmutableList;

…implies that there is some incompatibility between the version of the binaries you are using specifically with the guava dependency.

  • You are using chrome= 76.0
  • You are using the following:

    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-chrome-driver</artifactId>
        <version>3.5.3</version>
        <scope>test</scope>
    </dependency>
    
  • Your Selenium Client version is 3.5.3 which is more then 2 years older.

  • Your JDK version is unknown to us.

So there is a clear mismatch between the Selenium Client v3.5.3 and Chrome Browser v76.0

However as per the discussions in:

These issues crop up due to incompatibile Guava dependency.

The current guava version used within selenium-java-3.141.59 is guava-25.0-jre


Solution

Ensure that:

  • JDK is upgraded to current levels JDK 8u222.
  • Selenium is upgraded to current levels Version 3.141.59.
  • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
  • If your base Web Client version is too old, then uninstall it and install a recent GA and released version of Web Client.
  • Take a System Reboot.
  • Execute your @Test as non-root user.
  • Always invoke driver.quit() within tearDown(){} method to close & destroy the WebDriver and Web Client instances gracefully.

Update

So presumably your main question with respect to the error:

java.lang.AbstractMethodError: org.openqa.selenium.remote.service.DriverService$Builder.createArgs()Lcom/google/common/collect/ImmutableList;

is solved. Congratulations.

Now, as per your question update as you are seeing the error:

java.lang.NoClassDefFoundError: org/apache/http/auth/Credentials

There are two aspects.

Leave a Comment