0
0

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.

Laravel8.xでgithub actionのChromeDriver 115+がダウンロードできなくなって対応した話

0
Last updated at Posted at 2023-08-30

新しい記事を書きました

(現在2024/12/27時点)で当記事の対応では動かなくなったため、新しく記事を書きました。

結論

Chrome browser を v114にダウングレード+ChromeDriverもv114にして対応しました。

      - name: Downgrade Chrome browser to v114
        uses: browser-actions/setup-chrome@latest
        with:
          chrome-version: 1134343 # Last commit number for Chrome v114

      - name: Chrome bin-path Override
        run: sudo ln -nfs `which chrome` /usr/bin/google-chrome

      - name: Downgrade Chrome driver to v114
        run: php artisan dusk:chrome-driver 114

詳細

ChromeDriver 115+になってChromeDriverのダウンロードURLが変更になり、ChromeDriver 115以降でダウンロードできなくなりました。

参考:github actionエラー内容

  php artisan dusk:chrome-driver `/opt/google/chrome/chrome --version | cut -d " " -f3 | cut -d "." -f1`

   ErrorException 

  file_get_contents(https://chromedriver.storage.googleapis.com/LATEST_RELEASE_116): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

Laravel8.xはDusk v6.x系ですが、既にbugfixのサポート期間を過ぎていたため、修正されませんでした。

Dusk v7.x系は https://github.com/laravel/dusk/releases/tag/v7.9.0 で修正されました。
しかし、Dusk v7.x系はphp8.xで実行(https://github.com/laravel/dusk/blob/7.x/composer.json#L13 )のため、Laravel8.x系では使えませんでした。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?