在我有chromedriver 2.32.498550之前。
-
我删除所有缓存 (
C:UsersJHONEAppDataRoamingnpm
( -
我安装新版本(2.37(:
命令行:
npm install -g chromedriver
痕迹:
C:UsersJHONE>chromedriver -version
ChromeDriver 2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a)
C:UsersJHONE>npm install -g chromedriver
C:UsersJHONEAppDataRoamingnpmchromedriver -> C:UsersJHONEAppDataRoamingnpmnode_moduleschromedriverbinchromedriver
> chromedriver@2.37.0 install C:UsersJHONEAppDataRoamingnpmnode_moduleschromedriver
> node install.js
Downloading https://chromedriver.storage.googleapis.com/2.37/chromedriver_win32.zip
Saving to C:UsersJHONEAppDataLocalTempchromedriverchromedriver_win32.zip
Received 781K...
Received 1568K...
Received 2352K...
Received 3136K...
Received 3270K total.
Extracting zip contents
Copying to target path C:UsersJHONEAppDataRoamingnpmnode_moduleschromedriverlibchromedriver
Done. ChromeDriver binary available at C:UsersJHONEAppDataRoamingnpmnode_moduleschromedriverlibchromedriverchromedriver.exe
+ chromedriver@2.37.0
added 96 packages in 20.139s
但是我的默认版本没有改变(再次 2.32.498550(:
C:UsersJHONE>chromedriver -version
ChromeDriver 2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a)
我显示所有进程,我看到一个旧的chromeweb驱动程序.exe由RobotFramwork运行。我停止了这个过程,然后删除了这个chromeweb驱动程序.exe现在它可以工作了。
C:UsersJHONE>chromedriver -version
ChromeDriver 2.37.544315 (730aa6a5fdba159ac9f4c1e8cbc59bf1b5ce12b7)
但是如果我恢复这个 chromewebdriver.exe,请不要再工作了:
C:UsersJHONE>chromedriver -version
ChromeDriver 2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a)