From b7fababf48ac996faf1b1d5909d394b9e4247704 Mon Sep 17 00:00:00 2001 From: Ssyleric Date: Thu, 20 Nov 2025 12:13:36 +0100 Subject: [PATCH] Chrome option --- Resources/Common/CommonWeb.robot | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Resources/Common/CommonWeb.robot b/Resources/Common/CommonWeb.robot index 7770500..8ba2459 100644 --- a/Resources/Common/CommonWeb.robot +++ b/Resources/Common/CommonWeb.robot @@ -11,11 +11,14 @@ Begin Web Test # Crée un objet ChromeOptions ${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver - # Tous les arguments sont POSIONNELS (pas de "=") - Call Method ${options} add_argument --headless + # Tous les arguments en positionnel + 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 + + # ⚠️ ICI : on cache le '=' dans une variable, comme ça Robot ne le voit pas + ${win_arg}= Set Variable --window-size=1920,1080 + Call Method ${options} add_argument ${win_arg} # Utilise le chromedriver installé dans le LXC Jenkins Create Webdriver Chrome executable_path=/usr/local/bin/chromedriver options=${options}