Files
end-to-end/Resources/Common/CommonWeb.robot
2025-11-20 12:01:40 +01:00

29 lines
1.1 KiB
Plaintext

*** Settings ***
Library SeleniumLibrary
Resource ../BackOffice/BackOfficeApp.robot
Resource ../FrontOffice/FrontOfficeApp.robot
*** Variables ***
${BROWSER} chrome
*** Keywords ***
Begin Web Test
# 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