Reputation: 3
In my build.gradle file I have the following dependency:
compile group: 'org.seleniumhq.selenium', name: 'selenium-chrome-driver', version: '3.11.0'
However, whenever I start my tests, selenium seems to be using an old version of ChromeDriver, as it outputs in the console:
Starting ChromeDriver 2.31.488774
Does anyone know why this is happening?
Upvotes: 0
Views: 1451
Reputation: 256
If you dont provide the path of the executable Selenium will look in $PATH
which might be where the old version is.
Since you are pulling a newer version on your gradle file make sure to pass the executable path when you instantiate the Remote Driver.
Upvotes: 1