Steven's Notebook

Look Ma - No Hands!

When Chrome Auto-Updates

Using Selenium Webdriver or similar frameworks to “drive” a browser, usually for UI or end-to-end test automation, you may occasionally get this message:

session not created: This version of ChromeDriver only supports Chrome version 83 (SessionNotCreated)
Exception doesn't have a stacktrace

This means that, perhaps without you even realizing it, an update to Chrome has been installed on your computer. It’s time to also update to a new version of chromedriver.

1. use Chrome’s Help / About menu (chrome://settings/help) and look for your currently-installed version number.

2. search for [Chromedriver downloads] (and most likely be pointed to chromedriver.chromium.org/downloads); download the version appropriate for your computer.

3. put it in the right place, replacing all existing copies of chromedriver.exe. Where exactly? Open a Powershell window and enter ls -path c:\ -include chromedriver.* -file -recurse -ErrorAction SilentlyContinue

If all of the above locations are ones you want to replace, and you’ve unpacked chromedriver.exe into your Downloads directory, you could use this:

ls -path c:\ -include chromedriver.* -file -recurse -ErrorAction SilentlyContinue | foreach {cp ~\Downloads\chromedriver.exe $_.FullName}

You will get one error, that you Cannot overwrite the item ~\Downloads\chromedriver.exe with itself; that’s expected.

Steven's Notebook © 2000-2018 Frontier Theme