Files
crm/Resources/Common.robot
2025-11-20 16:17:30 +01:00

31 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${BROWSER} chrome
${URL} https://automationplayground.com/crm/
*** Keywords ***
Begin Web Test
# Crée un objet ChromeOptions côté Python (comme pour end-to-end & amazon)
${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
# ⚠️ Tous les arguments sont 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=1280,1040
# Utilise le chromedriver installé dans le LXC Jenkins
Create Webdriver Chrome executable_path=/usr/local/bin/chromedriver options=${options}
# Ouvre directement lURL CRM
Go To ${URL}
# Réglages SeleniumLibrary
Set Selenium Timeout 10s
Set Selenium Speed 0.2s
End Web Test
Close All Browsers