From 4ab91c0f8b9a2542e759e8529c840562536bd411 Mon Sep 17 00:00:00 2001 From: Ssyleric Date: Thu, 20 Nov 2025 16:15:15 +0100 Subject: [PATCH] Browser --- Resources/Common.robot | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Resources/Common.robot b/Resources/Common.robot index 89a1423..38d0694 100644 --- a/Resources/Common.robot +++ b/Resources/Common.robot @@ -1,10 +1,18 @@ +*** Settings *** +Library SeleniumLibrary + +*** Variables *** +${BROWSER}= chrome +${URL}= https://automationplayground.com/crm/ + + *** Keywords *** Begin Web Test - # Crée un objet ChromeOptions côté Python + # Crée un objet ChromeOptions côté Python (comme dans end-to-end) ${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver - # Arguments nécessaires pour LXC / Jenkins - Call Method ${options} add_argument --headless + # ⚠️ TOUS les arguments sont positionnels (pas de "name=value") + 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=1280,1040 @@ -12,7 +20,7 @@ Begin Web Test # Utilise le chromedriver installé dans le LXC Jenkins Create Webdriver Chrome executable_path=/usr/local/bin/chromedriver options=${options} - # Ouvre l’URL de la CRM + # Ouvre directement l’URL CRM avec ce driver Go To ${URL} # Réglages SeleniumLibrary @@ -20,4 +28,4 @@ Begin Web Test Set Selenium Speed 0.2s End Web Test - Close All Browsers + Close All Browsers \ No newline at end of file