Browser
This commit is contained in:
@@ -1,10 +1,18 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Library SeleniumLibrary
|
||||||
|
|
||||||
|
*** Variables ***
|
||||||
|
${BROWSER}= chrome
|
||||||
|
${URL}= https://automationplayground.com/crm/
|
||||||
|
|
||||||
|
|
||||||
*** Keywords ***
|
*** Keywords ***
|
||||||
Begin Web Test
|
Begin Web Test
|
||||||
# Crée un objet ChromeOptions côté Python
|
# Crée un objet ChromeOptions côté Python (comme dans end-to-end)
|
||||||
${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
|
${options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
|
||||||
|
|
||||||
# Arguments nécessaires pour LXC / Jenkins
|
# ⚠️ TOUS les arguments sont positionnels (pas de "name=value")
|
||||||
Call Method ${options} add_argument --headless
|
Call Method ${options} add_argument --headless=new
|
||||||
Call Method ${options} add_argument --disable-dev-shm-usage
|
Call Method ${options} add_argument --disable-dev-shm-usage
|
||||||
Call Method ${options} add_argument --no-sandbox
|
Call Method ${options} add_argument --no-sandbox
|
||||||
Call Method ${options} add_argument --window-size=1280,1040
|
Call Method ${options} add_argument --window-size=1280,1040
|
||||||
@@ -12,7 +20,7 @@ Begin Web Test
|
|||||||
# Utilise le chromedriver installé dans le LXC Jenkins
|
# Utilise le chromedriver installé dans le LXC Jenkins
|
||||||
Create Webdriver Chrome executable_path=/usr/local/bin/chromedriver options=${options}
|
Create Webdriver Chrome executable_path=/usr/local/bin/chromedriver options=${options}
|
||||||
|
|
||||||
# Ouvre l’URL de la CRM
|
# Ouvre directement l’URL CRM avec ce driver
|
||||||
Go To ${URL}
|
Go To ${URL}
|
||||||
|
|
||||||
# Réglages SeleniumLibrary
|
# Réglages SeleniumLibrary
|
||||||
|
|||||||
Reference in New Issue
Block a user