selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
原因分析:
主要的原因还是因为selenium模拟的客户端对浏览器的操作,但相应浏览器的驱动版本不匹配导致的。
问题解决:
为了解决这个问题,我们需要先了解我们当前浏览器的版本。以谷歌浏览器为例。
打开浏览器,在地址栏输入chrome://version/便可以查看到谷歌当前的版本号