24 lines
853 B
Plaintext
24 lines
853 B
Plaintext
*** Keywords ***
|
||
Begin Web Test
|
||
# Crée un objet ChromeOptions côté Python
|
||
${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
|
||
|
||
# Arguments nécessaires pour LXC / Jenkins
|
||
Call Method ${options} add_argument --headless
|
||
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 l’URL de la CRM
|
||
Go To ${URL}
|
||
|
||
# Réglages SeleniumLibrary
|
||
Set Selenium Timeout 10s
|
||
Set Selenium Speed 0.2s
|
||
|
||
End Web Test
|
||
Close All Browsers
|