From 1158e0c327812fee7b80ebe19934d81a5c7389b4 Mon Sep 17 00:00:00 2001 From: Thomas P Date: Wed, 31 Aug 2022 17:24:37 +0200 Subject: [PATCH] Add gecko driver versions 0.30.0 and 0.31.0 Useful when working with selenium, which relies on the "--websocket-port" argument understood from v0.30.0 onwards. See https://github.com/mozilla/geckodriver/issues/1959 --- src/webdrivermanager/gecko.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webdrivermanager/gecko.py b/src/webdrivermanager/gecko.py index 5409665..f821464 100644 --- a/src/webdrivermanager/gecko.py +++ b/src/webdrivermanager/gecko.py @@ -69,7 +69,7 @@ def get_compatible_version(self): # Map browser version to webdriver version # https://firefox-source-docs.mozilla.org/testing/geckodriver/Support.html browser_version = self._get_browser_version() - version_map = [(60, "v0.29.0"), (57, "v0.25.0"), (55, "v0.20.1"), (53, "v0.18.0"), (52, "v0.17.0")] + version_map = [(91, "v0.31.0"), (78, "v0.30.0"), (60, "v0.29.1"), (57, "v0.25.0"), (55, "v0.20.1"), (53, "v0.18.0"), (52, "v0.17.0")] for browser_minimum, driver_version in version_map: if browser_version >= browser_minimum: