From 9e0f98cef1e1e8274aaeae33b68371c94128a78c Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Sun, 2 Feb 2025 11:23:22 -0500 Subject: [PATCH 1/2] Fix issue with using multiple extension directories --- seleniumbase/core/browser_launcher.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/seleniumbase/core/browser_launcher.py b/seleniumbase/core/browser_launcher.py index 117fdc62d87..0b1a840f642 100644 --- a/seleniumbase/core/browser_launcher.py +++ b/seleniumbase/core/browser_launcher.py @@ -2146,7 +2146,9 @@ def _set_chrome_options( chrome_options.add_extension(abs_path) if extension_dir: # load-extension input can be a comma-separated list - abs_path = os.path.abspath(extension_dir) + abs_path = ( + ",".join(os.path.abspath(p) for p in extension_dir.split(",")) + ) chrome_options = add_chrome_ext_dir(chrome_options, abs_path) if ( page_load_strategy @@ -4114,7 +4116,9 @@ def get_local_driver( edge_options.add_extension(abs_path) if extension_dir: # load-extension input can be a comma-separated list - abs_path = os.path.abspath(extension_dir) + abs_path = ( + ",".join(os.path.abspath(p) for p in extension_dir.split(",")) + ) edge_options = add_chrome_ext_dir(edge_options, abs_path) edge_options.add_argument("--disable-infobars") edge_options.add_argument("--disable-notifications") From 4d70ed54ecb362b1aa72d284d4547bba6dfca2e3 Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Sun, 2 Feb 2025 11:23:34 -0500 Subject: [PATCH 2/2] Version 4.34.6 --- seleniumbase/__version__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seleniumbase/__version__.py b/seleniumbase/__version__.py index 813b56028a7..67094005160 100755 --- a/seleniumbase/__version__.py +++ b/seleniumbase/__version__.py @@ -1,2 +1,2 @@ # seleniumbase package -__version__ = "4.34.5" +__version__ = "4.34.6"