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