From 8a9444e9d424507e08a9b8a9dc9511f8bdb49823 Mon Sep 17 00:00:00 2001 From: Ssyleric Date: Thu, 20 Nov 2025 12:01:40 +0100 Subject: [PATCH] Chrome option --- Resources/Common/CommonWeb.robot | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Resources/Common/CommonWeb.robot b/Resources/Common/CommonWeb.robot index b8c86c4..af176fa 100644 --- a/Resources/Common/CommonWeb.robot +++ b/Resources/Common/CommonWeb.robot @@ -8,8 +8,21 @@ ${BROWSER} chrome *** Keywords *** Begin Web Test - Open Browser about:blank ${BROWSER} - Maximize Browser Window + # Options Chrome pour tourner dans le LXC Jenkins (sans affichage) + ${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver + + # Flags indispensables en conteneur + 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 + 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