Fix selenium.common.exceptions.SessionNotCreatedException: Message: session not created – Python Tutorial

By | November 25, 2020

When we are using selenium in python, we may find selenium.common.exceptions.SessionNotCreatedException: Message: session not created error. In this tutorial, we will introdue how to fix this problem.

fix selenium.common.exceptions.SessionNotCreatedException

Check your chrome browser version

We should check the version of our chrome browser version.

Here is an example.

google chrome version

We can find our chrome browser version is 75.0.3770.142

Download and use correct chromedriver.exe

After having known the version of chrome browser, we can download chromedriver.exe based on this version.

We can download chromedriver.exe here:

https://npm.taobao.org/mirrors/chromedriver/

In this example, we will download 75.0.3770.140 chromedriver.exe

download chromedriver

Then will find this error is fixed.

In order to use chromedriver.exe, you can read:

Fix Selenium ‘chromedriver’ executable needs to be in PATH – Python Tutorial

Leave a Reply