From 47376fc60b03b0366496bdb51a5461619bda63e6 Mon Sep 17 00:00:00 2001 From: Boni Garcia Date: Fri, 25 Aug 2023 14:29:20 +0200 Subject: [PATCH] Bug-fix reading wdm version --- src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java b/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java index 9ab56a487..92119f516 100644 --- a/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java +++ b/src/main/java/io/github/bonigarcia/wdm/WebDriverManager.java @@ -221,7 +221,7 @@ protected abstract List getDriverUrls(String driverVersion) protected WebDriverManager() { Optional wdVersion = getWdmVersion(getClass()); - if (wdVersion.equals(wdVersion)) { + if (wdVersion.isPresent()) { log.debug("Using WebDriverManager {}", wdVersion.get()); } config = new Config();