Message: session not created: This version of ChromeDriver only supports Chrome version 87 Current browser version is 86.0.4240.183 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe code example

Example 1: session not created: This version of ChromeDriver only supports Chrome version 85

pip install webdriver-manager

Example 2: sessionnotcreatedexception: message: session not created: this version of chromedriver only supports chrome version 81

from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(ChromeDriverManager().install())