コード一覧

‘chromedriver’ executable needs to be in PATH.のエラー対処方法

エラー内容

in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

Google翻訳した結果

最初に
WebDriverException を発生させます(
selenium.common.exceptions.WebDriverException: メッセージ: 'chromedriver' 実行可能ファイルは PATH にある必要があります。 https://sites.google.com/a/chromium.org/chromedriver/home をご覧ください

以下のサイトへ見に行くがよくわからない。

https://sites.google.com/a/chromium.org/chromedriver/home

解決方法

executable needs to be in PATH
実行可能ファイルは PATH にある必要があります。

chromedriver_win32のフォルダをコピーして、実行したいファイルの直下に保存したら動きました。
その際、参照するwebdriver.Chromeに記載しているパスもファイル直下のパスに書き換えました!