Chrome option
This commit is contained in:
@@ -8,8 +8,21 @@ ${BROWSER} chrome
|
||||
|
||||
*** Keywords ***
|
||||
Begin Web Test
|
||||
Open Browser about:blank ${BROWSER}
|
||||
Maximize Browser Window
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user