diff --git a/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java b/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java index ebb2f35a8..98f573374 100644 --- a/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java +++ b/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java @@ -497,10 +497,10 @@ protected void manage(Architecture arch, String version) { // Check latest version if (getLatest && !config().isUseBetaVersions()) { - Optional latestVersion = getLatestVersion(); - getLatest = !latestVersion.isPresent(); + Optional lastVersion = getLatestVersion(); + getLatest = !lastVersion.isPresent(); if (!getLatest) { - version = latestVersion.get(); + version = lastVersion.get(); } }