Open Source
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.
Code Archeology: The Evolution of ActionController::Parameters From Rails 4 to 5
FSF Blogs: FSD meeting recap 2024-01-05
at today’s Free Software Directory (FSD) IRC meeting.
ISRO க்கு உதவும் Elon Musk | China போர் விமானத்தை வாங்கும் Pakistan | VSHORAD Missile | Apache
Video by via Dailymotion Source India Set To Begin User Trials of Indigenous Man-Portable Air Defence Missile System | VSHORAD Pakistan to go in for J-31 Chinese stealth fighters. What this could mean for balance of air power ISRO all set to collaborate with Elon Musk; SpaceX’s Falcon-9 to take GSAT-20 satellite to Space Indian … Read more
Indonesian Pres. Joko Widodo, bibisita sa bansa sa Jan. 9-11 | 24 Oras
Video by via Dailymotion Source 24 Oras is GMA Network’s flagship newscast, anchored by Mel Tiangco, Vicky Morales and Emil Sumangil. It airs on GMA-7 Mondays to Fridays at 6:30 PM (PHL Time) and on weekends at 5:30 PM. For more videos from 24 Oras, visit http://www.gmanews.tv/24oras. #GMAIntegratedNews #KapusoStream Breaking news and stories from the … Read more
TSE divulga proposta de regras para próximas eleições
Video by via Dailymotion Source O Tribunal Superior Eleitoral (TSE) divulgou, nesta quinta-feira (04), minutas das resoluções para as eleições municipais de 2024. Assista ao Jornal da Manhã completo: https://youtube.com/live/3I92LZ8Ph7I Baixe o app Panflix: https://www.panflix.com.br/ Baixe o AppNews Jovem Pan na Google Playhttps://bit.ly/2KRm8OJ Baixe o AppNews Jovem Pan na App Storehttps://apple.co/3rSwBdh Inscreva-se no nosso canal:https://www.youtube.com/c/jovempannews … Read more
Me Esta Fallando la Suspensión Neumática de mi Semirremolque !
Video by via Dailymotion Source Me Esta Fallando la Suspensión Neumática de mi Semirremolque ! Go to Source
GIS Manila, ipinasara dahil ilegal umanong nagpapadala ng mga Pilipino sa Germany | 24 Oras
Video by via Dailymotion Source 24 Oras is GMA Network’s flagship newscast, anchored by Mel Tiangco, Vicky Morales and Emil Sumangil. It airs on GMA-7 Mondays to Fridays at 6:30 PM (PHL Time) and on weekends at 5:30 PM. For more videos from 24 Oras, visit http://www.gmanews.tv/24oras. #GMAIntegratedNews #KapusoStream Breaking news and stories from the … Read more
Retired engineer dubbed ‘Worcester’s King Canute’ after building flood wall around £600k home
Video by via Dailymotion Source A retired engineer has been dubbed ‘Worcester’s King Canute’ after he built a wall to protect his £600,000 property from flooding. Nick Lupton, 60, and his wife Anne, 50, live in a converted 17th century house on the banks of the River Severn. Since they moved into the four-bedroom detached … Read more