Setup chromedriver on lando

Created on 31 May 2022, over 2 years ago
Updated 9 May 2024, 7 months ago

I’m trying to setup a chromedriver on my local using lando so far I got

  chrome:
    type: compose
    app_mount: false
    services:
      image: drupalci/webdriver-chromedriver:production
      command: chromedriver --no-sandbox --log-path=/tmp/chromedriver.log --allowed-origins=* --verbose --whitelisted-ips=

my MINK_DRIVER_ARGS_WEBDRIVER setting is ‘[“chrome”, {“browserName”:“chrome”,“chromeOptions”:{“args”:[“--disable-gpu”,“--headless”]}}, “http://chrome:9515”]’

and I’m calling the test as

  phpunit:
    service: appserver
    user: www-data
    cmd:
      - appserver: php /app/web/vendor/bin/phpunit -v -c /app/phpunit.xml

But I keep getting
1) Drupal\Tests\layout_builder\FunctionalJavascript\BlockFilterTest::testBlockFilter
The test wasn’t able to connect to your webdriver instance. For more information read core/tests/README.md.
The original message while starting Mink: Could not open connection: unknown error: Chrome failed to start: crashed.
(unknown error: DevToolsActivePort file doesn’t exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=98.0.4758.102 (273bf7ac8c909cde36982d27f66f3c70846a3718-refs/branch-heads/4758@{#1151}),platform=Linux 5.10.104-linuxkit x86_64)
/app/web/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php:55
/app/web/core/tests/Drupal/Tests/BrowserTestBase.php:381
/app/web/core/modules/layout_builder/tests/src/FunctionalJavascript/BlockFilterTest.php:35
/app/web/vendor/phpunit/phpunit/src/Framework/TestResult.php:726
all other test types work.

Any help would be greatly appreciated as I can't test any Functional Javascript tests

💬 Support request
Status

Fixed

Component

Host Environment

Created by

🇺🇸United States smustgrave

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024