From cd655659434a2d2c06b92a01681cf27ab2c38b9f Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Thu, 30 Jul 2026 15:15:32 -0400 Subject: [PATCH] =?UTF-8?q?[FIX]=20selenium:=20retirer=20-remote-allow-sys?= =?UTF-8?q?tem-access=20(refus=C3=A9=20par=20geckodriver=20r=C3=A9cent)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit webdriver.Firefox échouait : « InvalidArgumentException: Argument --remote-allow-system-access can't be set via capabilities ». Cet argument (ajouté pour le Firefox snap d'Ubuntu) est désormais REFUSÉ via les capabilities par les geckodriver récents, qui gèrent seuls l'accès système du snap. Il cassait donc TOUS les setups sur geckodriver récent (ici Arch sans snap). On ne le passe plus. --- EN --- webdriver.Firefox was failing with « InvalidArgumentException: Argument --remote-allow-system-access can't be set via capabilities ». That argument, added for Ubuntu's snap Firefox, is now REFUSED through capabilities by recent geckodriver versions, which handle the snap's system access on their own. It therefore broke EVERY setup running a recent geckodriver — here Arch, with no snap at all. It is no longer passed. Assisted-by: Claude Opus 4.8 --- script/selenium/selenium_lib.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/selenium/selenium_lib.py b/script/selenium/selenium_lib.py index 09593dc..f0cba6d 100644 --- a/script/selenium/selenium_lib.py +++ b/script/selenium/selenium_lib.py @@ -312,7 +312,12 @@ class SeleniumLib(object): command_executor=driver_url, ) else: - firefox_options.add_argument("-remote-allow-system-access") + # NE PAS passer « -remote-allow-system-access » : les + # geckodriver récents le REFUSENT via les capabilities + # (« Argument --remote-allow-system-access can't be set via + # capabilities ») et gèrent seuls l'accès système du Firefox + # snap. Le passer cassait TOUS les setups sur geckodriver + # récent (pas seulement snap/Ubuntu). self.driver = webdriver.Firefox( options=firefox_options, service=firefox_services,