From c47302d5c4f89441add5a9cae4acc2fb1a33b260 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Thu, 4 Jun 2026 02:41:14 -0400 Subject: [PATCH] [UPD] selenium: update path driver --- script/selenium/selenium_lib.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/script/selenium/selenium_lib.py b/script/selenium/selenium_lib.py index deb925d..d0fe0f0 100644 --- a/script/selenium/selenium_lib.py +++ b/script/selenium/selenium_lib.py @@ -342,10 +342,6 @@ class SeleniumLib(object): # Ajout de l'enregistrement if self.config.record_mode: # Create recording - new_path = os.path.normpath( - os.path.join(os.path.dirname(__file__), "..", "..") - ) - sys.path.append(new_path) from script.selenium.selenium_video import VideoRecorder if not os.path.isdir(self.dirname_recording): @@ -361,10 +357,16 @@ class SeleniumLib(object): if self.config.use_firefox_driver and not self.config.use_network: if not self.config.no_dark_mode: self.driver.install_addon( - "./script/selenium/darkreader-firefox.xpi", temporary=True + os.path.join( + new_path, "script/selenium/darkreader-firefox.xpi" + ), + temporary=True, ) self.driver.install_addon( - "./script/selenium/odoo_debug-4.0.xpi", temporary=True + os.path.join( + new_path, "script/selenium/odoo_debug-4.0.xpi" + ), + temporary=True, ) if (