0
1

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 5 years have passed since last update.

【Laravel Dusk】ChromeDriverとChromeのバージョン不一致で生じるエラーの解決方法

0
Last updated at Posted at 2020-11-29

概要

Laravel Duskの公式に沿ってphp artisan duskを実行時、下記エラーが発生

Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 87
Current browser version is 86.0.4240.198 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

内容を簡単にまとめると、ChromeDriverとChromeのバージョンが一致していませんとのこと。

  • ChromeDriver:87.0.4280.20
  • Chrome:86.0.4240.198

解決方法

解決方法は下記の2通り
1. ChromeDriveのバージョンをChromeに合わせる
2. ChromeのバージョンをChromeDriverに合わせる

解決方法 ①ChromeDriveのバージョンをChromeに合わせる

Chromeのバージョンに合わせて、ChromeDriveのバージョンをインストール

// 〇〇には指定のバージョンを設定
php artisan dusk:chrome-driver 〇〇

解決方法 ②ChromeのバージョンをChromeDriverに合わせる

Chromeのバージョン更新は、下記を参考にすればいけると思います
Google Chrome を更新する

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?