Skip to content

Commit 696c509

Browse files
bseremmxr576
andauthored
Use updated official image (selenium/standalone-chromium:138.0) (#49)
* Update docker-compose.selenium-chrome.yaml Switch to official image * Bump to latest image version * set w3c=true * Actualize chrome driver args based on https://peter.sh/experiments/chromium-command-line-switches/ * Another try... which also adds consistent chrome arg ordering among different env vars --------- Co-authored-by: Dezső BICZÓ <[email protected]>
1 parent 2ef5210 commit 696c509

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

config.selenium-standalone-chrome.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ web_environment:
1212
# Use disable-dev-shm-usage instead of setting shm_usage
1313
# https://developers.google.com/web/tools/puppeteer/troubleshooting#tips
1414
# The format of chromeOptions is defined at https://chromedriver.chromium.org/capabilities
15-
- MINK_DRIVER_ARGS_WEBDRIVER=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":false,\"args\":[\"--disable-gpu\",\"--headless\", \"--no-sandbox\", \"--disable-dev-shm-usage\"]}}, \"http://selenium-chrome:4444/wd/hub\"]
15+
- MINK_DRIVER_ARGS_WEBDRIVER=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":true,\"args\":[\"--disable-dev-shm-usage\",\"--disable-gpu\",\"--headless\",\"--dns-prefetch-disable\"]}}, \"http://selenium-chrome:4444/wd/hub\"]
1616
# Nightwatch
1717
- DRUPAL_TEST_BASE_URL=http://web
1818
- DRUPAL_TEST_DB_URL=mysql://db:db@db/db
1919
- DRUPAL_TEST_WEBDRIVER_HOSTNAME=selenium-chrome
2020
- DRUPAL_TEST_WEBDRIVER_PORT=4444
2121
- DRUPAL_TEST_WEBDRIVER_PATH_PREFIX=/wd/hub
22-
- DRUPAL_TEST_WEBDRIVER_CHROME_ARGS=--disable-gpu --headless --no-sandbox --disable-dev-shm-usage
22+
- DRUPAL_TEST_WEBDRIVER_W3C=true
23+
- DRUPAL_TEST_WEBDRIVER_CHROME_ARGS=--disable-dev-shm-usage --disable-gpu --headless --dns-prefetch-disable
2324
- DRUPAL_TEST_CHROMEDRIVER_AUTOSTART=false
2425
- DRUPAL_NIGHTWATCH_SEARCH_DIRECTORY=../
2526
- DRUPAL_NIGHTWATCH_IGNORE_DIRECTORIES=node_modules,vendor,.*,sites/*/files,sites/*/private,sites/simpletest
2627
- DRUPAL_NIGHTWATCH_OUTPUT=reports/nightwatch
2728
# DTT
2829
- DTT_BASE_URL=http://web
29-
- DTT_MINK_DRIVER_ARGS=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":false,\"args\":[\"--disable-gpu\",\"--headless\", \"--no-sandbox\", \"--disable-dev-shm-usage\"]}}, \"http://selenium-chrome:4444/wd/hub\"]
30+
- DTT_MINK_DRIVER_ARGS=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":true,\"args\":[\"--disable-dev-shm-usage\",\"--disable-gpu\",\"--headless\",\"--dns-prefetch-disable\"]}}, \"http://selenium-chrome:4444/wd/hub\"]

docker-compose.selenium-chrome.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
services:
88
selenium-chrome:
9-
image: seleniarm/standalone-chromium:4.1.4-20220429
9+
image: selenium/standalone-chromium:138.0
1010
container_name: ddev-${DDEV_SITENAME}-selenium-chrome
1111
expose:
1212
# The internal noVNC port, which operates over HTTP so it can be exposed

0 commit comments

Comments
 (0)