I get following error message, when I try to execute test. There weren't any changes in version numbers in pom file, so we could exclude dependency related problems.
java.lang.NoSuchFieldError: INSTANCE
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.(SSLConnectionSocketFactory.java:144) at org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:71)
driver = new FirefoxDriver(new FirefoxBinary(new File(FF_EXEPATH)), profile);
You are definitely have a version mismatch.
Please ensure that you are resolving to
The easiest of trying to check if this is the root cause is to add this above dependency explicitly and see if that helps. Selenium is depending on httpclient 4.5.2.
Just to check what version of httpclient are you resolving to, you can try running
mvn dependency:tree | grep 'httpclient'. You should see something like below :