Chrome option

This commit is contained in:
2025-11-20 12:01:40 +01:00
parent 0703ddba82
commit 8a9444e9d4

View File

@@ -8,8 +8,21 @@ ${BROWSER} chrome
*** Keywords *** *** Keywords ***
Begin Web Test Begin Web Test
Open Browser about:blank ${BROWSER} # Options Chrome pour tourner dans le LXC Jenkins (sans affichage)
Maximize Browser Window ${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 End Web Test
Close All Browsers Close All Browsers