在selenium官網上的download頁面中提供了chrome-webdriver的下載鏈接.
https://sites.google.com/a/chromium.org/chromedriver/downloads
如果這個鏈接失效了,請百度"selenium chrome"
如果不下載chrome-webdriver,而直接寫chrome.exe的路徑,會報錯
[1020:6356:1004/173348:ERROR:cache_util_win.cc(20)] Unable to move the cache: 0
[1020:6356:1004/173348:ERROR:cache_util.cc(134)] Unable to move cache folder C:\Users\weidiao\AppData\Local\Google\Chrome\User Data\ShaderCache\GPUCache to C:\Users\weidiao\AppData\Local\Google\Chrome\User Data\ShaderCache\old_GPUCache_000
[1020:6356:1004/173348:ERROR:cache_creator.cc(134)] Unable to create cache
[1020:6356:1004/173348:ERROR:shader_disk_cache.cc(589)] Shader Cache Creation failed: -2
參考原文:
http://www.cnblogs.com/weidiao/p/5930468.html