diff --git a/src/main/java/io/github/bonigarcia/wdm/versions/VersionDetector.java b/src/main/java/io/github/bonigarcia/wdm/versions/VersionDetector.java index c551c33d6..4576cb3d2 100644 --- a/src/main/java/io/github/bonigarcia/wdm/versions/VersionDetector.java +++ b/src/main/java/io/github/bonigarcia/wdm/versions/VersionDetector.java @@ -132,7 +132,7 @@ public Optional getDriverVersionFromRepository( return Optional.of(fileteredList .get(fileteredList.size() - 1).version); - } else { + } else if (!driverVersion.isPresent()) { // Parse JSON using LastGoodVersions cftUrl = config.getChromeLastGoodVersionsUrl(); diff --git a/src/test/java/io/github/bonigarcia/wdm/test/chrome/ChromeVersionTest.java b/src/test/java/io/github/bonigarcia/wdm/test/chrome/ChromeVersionTest.java index 2509fa208..950d8cba1 100644 --- a/src/test/java/io/github/bonigarcia/wdm/test/chrome/ChromeVersionTest.java +++ b/src/test/java/io/github/bonigarcia/wdm/test/chrome/ChromeVersionTest.java @@ -32,7 +32,7 @@ class ChromeVersionTest extends VersionTestParent { @BeforeEach void setup() { driverClass = ChromeDriver.class; - specificVersions = new String[] { "115.0.5790.24", "116.0.5817.0" }; + specificVersions = new String[] { "114.0.5735.90", "115.0.5790.24", "116.0.5817.0" }; } }