diff --git a/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java b/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java index 3a5ed3b45..d17ba92bd 100644 --- a/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java +++ b/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java @@ -1446,11 +1446,12 @@ protected UrlHandler createUrlHandler(String driverVersion) boolean getLatest = isUnknown(driverVersion); boolean continueSearchingVersion; - boolean isCfT = isChrome() && VersionDetector.isCfT(driverVersion); + boolean isMirrorCfT = isChrome() && isUseMirror() + && VersionDetector.isCfT(driverVersion); do { // Filter by driver name - if (!isCfT) { + if (!isMirrorCfT) { urlHandler.filterByDriverName(shortDriverName); } @@ -1506,7 +1507,7 @@ protected UrlHandler createUrlHandler(String driverVersion) } } while (continueSearchingVersion); - if (isCfT) { + if (isMirrorCfT) { List driversFromMirror = getMirrorUrls( urlHandler.getCandidateUrl(), ""); urlHandler.setCandidateUrls(driversFromMirror);