Home > Net >  How to update Chromedriver in Windows 7 for using selenium in VBA
How to update Chromedriver in Windows 7 for using selenium in VBA

Time:11-15

After I updated my chrome I got the "SessionNotCreatedError" error due to outdated Chromedriver. (My Current Chrome version is 95 and my Chromedriver is 92.xx)

Private Sub CommandButton1_Click()

Dim Driver As New WebDriver

Driver.Start "Chrome", "www.google.com" '(Line which drops an error)

end sub

I have searched for how to update chromedriver on Windows 7 and tested these methods but non of them worked:

1-I have downloaded the appropriate Chromiumdriver version which matches with my current Chrome version (which is 95) and copied it in "C:" path.

2-I have installed Chromedriver by "npm install -g chromedriver" command in CMD

3-I have added new "chromedriver.exe" path to the windows system PATH variable.

CodePudding user response:

The video that I told you in the comment above explains everything you need to update your chromedriver.exe. When your Chrome version gets update again, you' ll have to get the new chromedriver.exe to match Chrome.

enter image description here

  • Related