Google chromeとchromedriverのバージョンの違いによるエラーの解消(python)

前提

seleniumでスクレイピングを実行したいのですが、以下のエラーメッセージが発生しました。

実現したいこと

Google chromeとchromedriverのバージョンの不一致を解消する

発生している問題・エラーメッセージ

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

試したこと

promptでpip install pip install chromedriver-binary==105.0.5195.52.0と入力してchromedriverを更新しましたが、同じエラーメッセージが表示されました。
また、以前ダウンロードしたchromedriverを削除して、もう一度 105.0.5195.52.0のバージョンをダウンロードしましたが、結果は変わらずです。どうすればchromedriverの更新が反映されるのでしょうか。

補足情報(FW/ツールのバージョンなど)

python 3.7
Anaconda spyder使用

コメントを投稿

0 コメント