eiriksm.dev: Could not open connection: unknown error: cannot find Chrome binary

I was just recently starting to get this on projects after (at least I think that’s why) I updated to Chrome 120.

      Could not open connection: unknown error: cannot find Chrome binary
        (Driver info: chromedriver=120.0.6099.71 (9729082fe6174c0a371fc66501f5efc5d69d3d2b-refs/branch-heads/6099_56@{#13}),platform=Linux 6.2.0-37-generic x86_64) (BehatMinkExceptionDriverException)

That’s the error message in behat at least, which I think originates from the actual webdriver (chromedriver) response. If I look at the debug information from the chromedriver logs it says this:

[1703837483,910][INFO]: [0ca18bb59db30d5acd358de02a01da0a] RESPONSE InitSession ERROR unknown error: cannot find Chrome binary

Well the error is clear enough. It can not find the binary. That’s fine by me, but where would I go about informing about the binary? Well, for me that would be in behat.yml:

@@ -33,8 +33,9 @@ default:
               w3c: false
           marionette: null
           chrome:
+            binary: /usr/bin/google-chrome
             switches:

This probably translates to something like this, while initiating the session with chromedriver (slightly edited for relevance and brevity):

[1703887172,675][INFO]: [95b2908582293fa560a7301661f5e741] COMMAND InitSession {
   "desiredCapabilities": {
      "chrome.binary": "/usr/bin/google-chrome",
      "chrome.extensions": [  ],
      "chrome.switches": [ "--ignore-certificate-errors", "--disable-gpu", "--no-sandbox", "--disable-dev-shm-usage" ],
      "goog:chromeOptions": {
         "args": [ "--ignore-certificate-errors", "--disable-gpu", "--no-sandbox", "--disable-dev-shm-usage" ],
         "binary": "/usr/bin/google-chrome",
         "extensions": [  ]
      },
      "ignoreZoomSetting": false,
      "marionette": true,
   }
}

If you are using some other tool that interacts with chromedriver, I am sure you are already setting some parameters there, which you could append this new parameter to.

Dorian Meunier Triolier – Bros’T Dents

Le brossage des dents a parfois du mal à passer chez certains enfants. Pour les convaincre, Dorian a inventé le Bros’T Dents. Un servomoteur contrôlé par une carte Arduino empêche de reposer la brosse à dents dans son socle avant la fin du délai de 3 minutes.

Site Overview

Have you ever thought of a new way to share your content online?

Look around you.. …. regular content sharing platforms has become so overcrowded …..such that it has now become hard for new content creators to find a space in the online world…

How do I grow as a content creator in today’s world??

Be part of a community that’ll change how people share content online, ….

be part of a community where we grow together, …..
be part of a community where you’re free to express yourself ..and at the same time,, be seen by Google…within a very short period of time………………….

So what’s this site all about????

It’s an online community where you get to make and chat with new friends, …..

publish content that gets indexed by Google in less than 48 hours, …….

Free Guest posting services………

making money with affiliate marketing,….

You also get to watch Breaking news live from around the world non-stop

With this site,,,,, you can also Create separate groups of different interest for free……

So what are you waiting for………… Visit https://universalfamily.com.ng/ to Sign up for an account now..