This commit is contained in:
2025-11-20 16:17:30 +01:00
parent 2f6e87d167
commit 69b5dcfc5a

View File

@@ -1,18 +1,17 @@
*** Settings *** *** Settings ***
Library SeleniumLibrary Library SeleniumLibrary
*** Variables *** *** Variables ***
${BROWSER}= chrome ${BROWSER} chrome
${URL}= https://automationplayground.com/crm/ ${URL} https://automationplayground.com/crm/
*** Keywords *** *** Keywords ***
Begin Web Test Begin Web Test
# Crée un objet ChromeOptions côté Python (comme dans end-to-end) # Crée un objet ChromeOptions côté Python (comme pour end-to-end & amazon)
${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver ${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
# ⚠️ TOUS les arguments sont positionnels (pas de "name=value") # ⚠️ Tous les arguments sont positionnels, PAS des "nom=valeur"
Call Method ${options} add_argument --headless Call Method ${options} add_argument --headless=new
Call Method ${options} add_argument --disable-dev-shm-usage Call Method ${options} add_argument --disable-dev-shm-usage
Call Method ${options} add_argument --no-sandbox Call Method ${options} add_argument --no-sandbox
Call Method ${options} add_argument --window-size=1280,1040 Call Method ${options} add_argument --window-size=1280,1040
@@ -20,7 +19,7 @@ Begin Web Test
# Utilise 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} Create Webdriver Chrome executable_path=/usr/local/bin/chromedriver options=${options}
# Ouvre directement lURL CRM avec ce driver # Ouvre directement lURL CRM
Go To ${URL} Go To ${URL}
# Réglages SeleniumLibrary # Réglages SeleniumLibrary
@@ -28,4 +27,4 @@ Begin Web Test
Set Selenium Speed 0.2s Set Selenium Speed 0.2s
End Web Test End Web Test
Close All Browsers Close All Browsers