From 8433c1a45d1328d80eda75c31962ef9a3ff56c94 Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Fri, 24 Jun 2022 14:50:30 -0400 Subject: [PATCH] Fix confusion with variable (#392) 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):