6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

M2 Mac DockerでのSelenium環境構築のはまりポイント

Last updated at Posted at 2022-08-03

M2 Mac (M1でも共通)にて、DockerでSelenium環境構築の際にはまった内容

内容

Docker環境にて、以下のimageにてseleminum環境を構築した際に下記のエラーとなった

image:

selenium/standalone-chrome

エラー内容:

      Selenium::WebDriver::Error::SessionNotCreatedError:
        Could not start a new session. Error while creating session with the driver service. Stopping driver service: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed.
          (chrome not reachable)
          (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

原因

どうやら M2 Macでは動作しないらしい
コンテナは立ち上がるのに。。。

対策

以下のimageを使用したらいいらしい

seleniarm/standalone-chromium

さいごに

備忘録的に内容を残しています
詳細な原因については、時間あれば調べて追記します

6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?