From 9278ddb6f681563340c6f1e74d74078beb0d5b8b Mon Sep 17 00:00:00 2001 From: Ssyleric Date: Thu, 20 Nov 2025 12:06:07 +0100 Subject: [PATCH] Chrome option --- Resources/Common/CommonWeb.robot | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Resources/Common/CommonWeb.robot b/Resources/Common/CommonWeb.robot index af176fa..bc6a7a2 100644 --- a/Resources/Common/CommonWeb.robot +++ b/Resources/Common/CommonWeb.robot @@ -8,21 +8,20 @@ ${BROWSER} chrome *** Keywords *** Begin Web Test - # Options Chrome pour tourner dans le LXC Jenkins (sans affichage) + # Crée un objet ChromeOptions ${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver - # Flags indispensables en conteneur + # ⚠️ Tous les arguments sont des positionnels, PAS des "nom=valeur" Call Method ${options} add_argument --headless=new Call Method ${options} add_argument --disable-dev-shm-usage Call Method ${options} add_argument --no-sandbox Call Method ${options} add_argument --window-size=1920,1080 - # ⚠️ On force le chromedriver installé dans le LXC Jenkins + # Utilise le chromedriver installé dans le LXC Jenkins Create Webdriver Chrome executable_path=/usr/local/bin/chromedriver options=${options} Set Selenium Speed 0.3s Set Selenium Timeout 7s - End Web Test Close All Browsers