Browser
This commit is contained in:
@@ -1,18 +1,17 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Library SeleniumLibrary
|
||||
|
||||
*** Variables ***
|
||||
${BROWSER}= chrome
|
||||
${URL}= https://automationplayground.com/crm/
|
||||
|
||||
${BROWSER} chrome
|
||||
${URL} https://automationplayground.com/crm/
|
||||
|
||||
*** Keywords ***
|
||||
Begin Web Test
|
||||
# Crée un objet ChromeOptions côté Python (comme dans end-to-end)
|
||||
# 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 de "name=value")
|
||||
Call Method ${options} add_argument --headless
|
||||
# ⚠️ 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
|
||||
@@ -20,7 +19,7 @@ Begin Web Test
|
||||
# Utilise le chromedriver installé dans le LXC Jenkins
|
||||
Create Webdriver Chrome executable_path=/usr/local/bin/chromedriver options=${options}
|
||||
|
||||
# Ouvre directement l’URL CRM avec ce driver
|
||||
# Ouvre directement l’URL CRM
|
||||
Go To ${URL}
|
||||
|
||||
# Réglages SeleniumLibrary
|
||||
|
||||
Reference in New Issue
Block a user