From 3e48e984f5e7533c50b9ecc625a0580fe26a6e04 Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Wed, 15 Jun 2022 18:03:40 -0400 Subject: [PATCH] Fix confusion with variable Previous version would make the script look for the cached Edge driver in the wrong location, causing it to always think the driver is not cached (and therefore download a new, unnecessary copy of the driver). Resolves #387 --- webdriver_manager/core/driver_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webdriver_manager/core/driver_cache.py b/webdriver_manager/core/driver_cache.py index da21aebe..efc95cc3 100644 --- a/webdriver_manager/core/driver_cache.py +++ b/webdriver_manager/core/driver_cache.py @@ -111,7 +111,7 @@ def find_driver(self, driver): "msedgedriver" if driver_name == "edgedriver" else driver_name ) driver_binary_name = ( - f"{driver_binary_name}.exe" if "win" in os_type else driver_name + f"{driver_binary_name}.exe" if "win" in os_type else driver_binary_name ) binary_path = os.path.join(path, driver_binary_name) if not os.path.exists(binary_path):