Chrome115以上を使用している場合にWebdrivers::VersionErrorが発生しない様にする。 #6982
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
概要
ローカルでインストールされているChromeが115以上の場合システムテストを実行すると、
Webdrivers::VersionError
が発生する。Webdrivers::VersionErrorエラー全文
原因
対処方法
最新版のselenium-webdriverにはドライバの管理機能が組み込まれており、これに切り替えることで問題が解決する。
参考記事
rails/rails#48847
https://qiita.com/jnchito/items/f994dd3ac2cdc39bff8c
変更確認方法
(前提) chrome driverのversionが115以上であること
Webdrivers::VersionError
が発生することを確認する。bug/webdrivers_version_error_occurs_when_using_above_chrome_115
をローカルに取り込んで、ブランチを切り替える。Webdrivers::VersionError
が発生しないことを確認する。Screenshot
変更前
変更後