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

解决方案:

1.查看浏览器当前版本:chrome://version/。

2.到https://sites.google.com/a/chromium.org/chromedriver/downloads下载对应的浏览器驱动。

3.将驱动放在任意位置。

4.browser = webdriver.Chrome(r"驱动的路径")

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

上一篇:【转载】Direct3D HLSL介绍(上)


下一篇:h5 图片生成